Submission #00050
ソースコード
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 | #include<bits/stdc++.h> #define F first #define S second #define endl '\n' #define MP make_pair #define pb push_back using namespace std; typedef pair< int , int > P; typedef pair< int , P> i_P; typedef long long LL; static const int INF = INT_MAX; static const int MIN = INT_MIN; static const LL L_INF = LLONG_MAX; static const int MOD = 1000000000 + 7; static const int SIZE = 100005; int main() { cin.tie(0); ios::sync_with_stdio( false ); LL n, t; cin >> n >> t; LL res = 0; for ( int i = 0; i < n; ++i ) { LL p; cin >> p; LL mn = INF; for ( int j = 0; j < p; ++j ) { LL b; cin >> b; mn = min( b, mn ); } res += mn * 2; } if ( res > t ) cout << "TLE!" << endl; else cout << res << endl; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0004 - 野草さいしゅう |
ユーザー名 | crom |
投稿日時 | 2019-05-27 17:09:52 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 869 Byte |
最大実行時間 | 110 ms |
最大メモリ使用量 | 720 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input-sample01 | AC | 56 ms | 348 KB |
1
|
input-sample02 | AC | 58 ms | 300 KB |
1
|
input01 | AC | 110 ms | 384 KB |
1
|
input02 | AC | 92 ms | 336 KB |
1
|
input03 | AC | 79 ms | 420 KB |
1
|
input04 | AC | 71 ms | 500 KB |
1
|
input05 | AC | 109 ms | 456 KB |
1
|
input06 | AC | 110 ms | 536 KB |
1
|
input07 | AC | 106 ms | 616 KB |
1
|
input08 | AC | 87 ms | 568 KB |
1
|
input09 | AC | 67 ms | 520 KB |
1
|
input10 | AC | 77 ms | 592 KB |
1
|
input11 | AC | 64 ms | 544 KB |
1
|
input12 | AC | 67 ms | 496 KB |
1
|
input13 | AC | 55 ms | 576 KB |
1
|
input14 | AC | 76 ms | 660 KB |
1
|
input15 | AC | 55 ms | 608 KB |
1
|
input16 | AC | 110 ms | 560 KB |
1
|
input17 | AC | 28 ms | 640 KB |
1
|
input18 | AC | 24 ms | 592 KB |
1
|
input19 | AC | 26 ms | 668 KB |
1
|
input20 | AC | 40 ms | 620 KB |
1
|
input21 | AC | 40 ms | 700 KB |
1
|
input22 | AC | 46 ms | 652 KB |
1
|
input23 | AC | 39 ms | 600 KB |
1
|
input24 | AC | 31 ms | 684 KB |
1
|
input25 | AC | 39 ms | 636 KB |
1
|
input26 | AC | 75 ms | 720 KB |
1
|
input27 | AC | 84 ms | 672 KB |
1
|