Submission #00092
ソースコード
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 <iostream> using namespace std; const int EXIT = 0; int main() { int n, maxd=-1, maxp; int p, d1, d2, d; while ( 1 ) { cin >> n; if ( n == EXIT ) break ; for ( int i=0; i<n; i++ ) { cin >> p >> d1 >> d2; d = d1 + d2; if ( d > maxd ) { maxd = d; maxp = p; } } cout << maxp << " " << maxd; } } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 病院でウォーキング |
ユーザー名 | sth1432 |
投稿日時 | 2016-08-29 09:34:31 |
言語 | C++ |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 363 Byte |
最大実行時間 | 44 ms |
最大メモリ使用量 | 628 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 4 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
00sample.in | WA | 19 ms | 476 KB |
1
|
01.in | WA | 21 ms | 456 KB |
1
|
02.in | WA | 23 ms | 568 KB |
1
|
03.in | WA | 25 ms | 548 KB |
1
|
04.in | WA | 30 ms | 524 KB |
1
|
05.in | WA | 34 ms | 628 KB |
1
|
06.in | WA | 39 ms | 476 KB |
1
|
07.in | WA | 44 ms | 324 KB |
1
|
08.in | WA | 41 ms | 556 KB |
1
|
09.in | WA | 40 ms | 536 KB |
1
|
10.in | WA | 38 ms | 512 KB |
1
|