Submission #00091


ソースコード

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
#include<bits/stdc++.h>
using namespace std;
#define INF 1000000009
int main(){
int n,t;
cin>>n>>t;
long long ans=0;
for(int i=0;i<n;i++){
int p,k=INF;
cin>>p;
for(int j=0;j<p;j++){
int d;
cin>>d;
k=min(k,d);
}
ans+=k*2;
}
if(ans>t){
cout<<"TLE!"<<endl;
}
else{
cout<<ans<<endl;
}
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 23 ms 476 KB
1
input-sample02 AC 19 ms 448 KB
1
input01 AC 110 ms 544 KB
1
input02 AC 53 ms 516 KB
1
input03 AC 23 ms 616 KB
1
input04 AC 52 ms 460 KB
1
input05 AC 47 ms 432 KB
1
input06 AC 86 ms 528 KB
1
input07 AC 82 ms 500 KB
1
input08 AC 63 ms 600 KB
1
input09 AC 37 ms 568 KB
1
input10 AC 53 ms 540 KB
1
input11 AC 39 ms 508 KB
1
input12 AC 74 ms 480 KB
1
input13 AC 66 ms 456 KB
1
input14 AC 82 ms 556 KB
1
input15 AC 26 ms 528 KB
1
input16 AC 108 ms 500 KB
1
input17 AC 49 ms 472 KB
1
input18 AC 33 ms 568 KB
1
input19 AC 22 ms 544 KB
1
input20 AC 49 ms 648 KB
1
input21 AC 68 ms 620 KB
1
input22 AC 104 ms 596 KB
1
input23 AC 73 ms 696 KB
1
input24 AC 52 ms 544 KB
1
input25 AC 64 ms 512 KB
1
input26 AC 206 ms 740 KB
1
input27 AC 227 ms 712 KB
1