Submission #13838
ソースコード
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; int data[100050]={0}; int main(){ int h,w,a,man=0; scanf ( "%d %d" ,&h,&w); for ( int i=0;i<h;i++){ for ( int j=0;j<w;j++){ scanf ( "%d" ,&a); if (a == 1){ data[j]++; if (data[j] > man){ man = data[j]; } } } } cout << man << endl; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0059 - プレスパズル |
ユーザー名 | ei1612 |
投稿日時 | 2017-03-29 09:52:17 |
言語 | C++11 |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 352 Byte |
最大実行時間 | 995 ms |
最大メモリ使用量 | 23448 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
BlockInput1.txt | AC | 31 ms | 480 KB |
1
|
BlockInput2.txt | AC | 22 ms | 588 KB |
1
|
BlockInput3.txt | AC | 21 ms | 444 KB |
1
|
BlockInput4.txt | AC | 30 ms | 552 KB |
1
|
BlockInput5.txt | AC | 995 ms | 23448 KB |
1
|
BlockInput6.txt | AC | 620 ms | 23416 KB |
1
|
BlockInput7.txt | AC | 916 ms | 23380 KB |
1
|