Submission #00001
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #include "bits/stdc++.h" // {{{ using namespace std; #define eb emplace_back #define emp emplace #define fi first #define se second #define X first #define Y second #define outl(x) cout << (x) << '\n' #define rep(i,n) for(int i=0; i < (int)(n); ++i) #define ALL(x) begin(x), end(x) #define TMPLT(T,U) template<class T, class U> #ifdef DEBUG #define debug(...) fprintf(stderr, __VA_ARGS__) #define show(x) clog << #x << " \t= " << (x) << '\n' #define line() fputs("\n--------------------------------\n", stderr) #else #define debug(...) #define show(x) #define line() #endif using ll = long long ; using pii = pair< int , int >; TMPLT(T,U) inline bool chmax(T &a, U b){ return b>a ? a=b,1 : 0;} TMPLT(T,U) inline bool chmin(T &a, U b){ return b<a ? a=b,1 : 0;} TMPLT(T,U) inline constexpr common_type_t<T,U> gcd(T x, U y) { return (x<y)? gcd(y,x) : (y <= 0)? x : gcd(y, x % y); } TMPLT(T,U) inline constexpr ll lcm(T x, U y) { return (ll)x/gcd(x,y) * y; } inline bool inner( int val, int min, int max){ return min <= val && val < max; } constexpr int INF = 0x3f3f3f3f; constexpr ll LINF = 0x3f3f3f3f'3f3f3f3fLL; namespace ydk{ // }}} constexpr int LIM = ( int )1e5 + 10; signed _vim_is_god_() { int a, b, c, d, e; cin >> a >> b >> c >> d >> e; outl( min(a,min(b,c)) + min(d,e) - 50); return 0; } } // {{{ signed main(){ydk::_vim_is_god_(); return 0;} // }}} |
ステータス
項目 | データ |
---|---|
問題 | 0001 - ランチ (Lunch) |
ユーザー名 | Arumakan_ei1727 |
投稿日時 | 2018-11-07 21:05:32 |
言語 | C++14 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 1499 Byte |
最大実行時間 | 46 ms |
最大メモリ使用量 | 636 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | set1 | 20 / 20 | *1.txt |
2 | set2 | 20 / 20 | *2.txt |
3 | set3 | 20 / 20 | *3.txt |
4 | set4 | 20 / 20 | *4.txt |
5 | set5 | 20 / 20 | *5.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||||
---|---|---|---|---|---|---|---|---|
2012-yo-t1-in1.txt | AC | 46 ms | 604 KB |
1
|
||||
2012-yo-t1-in2.txt | AC | 24 ms | 572 KB |
2
|
||||
2012-yo-t1-in3.txt | AC | 25 ms | 412 KB |
3
|
||||
2012-yo-t1-in4.txt | AC | 26 ms | 636 KB |
4
|
||||
2012-yo-t1-in5.txt | AC | 19 ms | 608 KB |
5
|