Submission #00200


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,t,p,d,ans=0;
cin>>n>>t;
for(int i=0;i<n;i++){
int mins=1111111;
cin>>p;
for(int j=0;j<p;j++){
cin>>d;
mins=min(mins,d);
}
ans+=mins*2;
}
if(t>=ans) cout<<ans<<endl;
else cout<<"TLE!"<<endl;
return(0);
}

ステータス

項目 データ
問題 0004 - 野草さいしゅう
ユーザー名 r1732
投稿日時 2019-05-27 18:22:45
言語 C++11
状態 Accepted
得点 1
ソースコード長 328 Byte
最大実行時間 213 ms
最大メモリ使用量 696 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 19 ms 604 KB
1
input-sample02 AC 17 ms 580 KB
1
input01 AC 98 ms 416 KB
1
input02 AC 49 ms 520 KB
1
input03 AC 25 ms 492 KB
1
input04 AC 46 ms 596 KB
1
input05 AC 53 ms 436 KB
1
input06 AC 100 ms 408 KB
1
input07 AC 87 ms 512 KB
1
input08 AC 65 ms 480 KB
1
input09 AC 33 ms 572 KB
1
input10 AC 51 ms 668 KB
1
input11 AC 38 ms 640 KB
1
input12 AC 63 ms 612 KB
1
input13 AC 50 ms 588 KB
1
input14 AC 73 ms 552 KB
1
input15 AC 27 ms 400 KB
1
input16 AC 106 ms 624 KB
1
input17 AC 44 ms 468 KB
1
input18 AC 40 ms 568 KB
1
input19 AC 25 ms 664 KB
1
input20 AC 49 ms 632 KB
1
input21 AC 69 ms 600 KB
1
input22 AC 103 ms 696 KB
1
input23 AC 69 ms 664 KB
1
input24 AC 50 ms 632 KB
1
input25 AC 64 ms 604 KB
1
input26 AC 210 ms 568 KB
1
input27 AC 213 ms 668 KB
1