Submission #31562
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <stdio.h> short H, W; short cnt[10001]; short i,j; int main() { scanf ( "%hd%hd" , &H, &W); short n; for (i=0; i<H; ++i) { for (j=0; j<W; ++j) { scanf ( "%hd" , &n); cnt[j] += n; } } j = 0; for (i=0; i<W; ++i) if (cnt[i] > j)j = cnt[i]; printf ( "%d\n" , j); } |
ステータス
項目 | データ |
---|---|
問題 | 0059 - プレスパズル |
ユーザー名 | Arumakan_ei1727 |
投稿日時 | 2018-02-24 13:40:29 |
言語 | C |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 317 Byte |
最大実行時間 | 966 ms |
最大メモリ使用量 | 23492 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
BlockInput1.txt | AC | 25 ms | 380 KB |
1
|
BlockInput2.txt | AC | 16 ms | 312 KB |
1
|
BlockInput3.txt | AC | 24 ms | 336 KB |
1
|
BlockInput4.txt | AC | 21 ms | 524 KB |
1
|
BlockInput5.txt | AC | 746 ms | 23492 KB |
1
|
BlockInput6.txt | AC | 634 ms | 23448 KB |
1
|
BlockInput7.txt | AC | 966 ms | 23488 KB |
1
|