Submission #00798
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include<iostream> #include<algorithm> using namespace std; main(){ int ans[10005]={0}; int n,m,a,maxs=0; cin>>n>>m; for ( int i=0;i<n;i++){ for ( int j=0;j<m;j++){ cin>>a; ans[j]+=a; } } for ( int i=0;i<m;i++){ maxs=max(maxs,ans[i]); } cout<<maxs<<endl; } |
ステータス
項目 | データ |
---|---|
問題 | 0059 - プレスパズル |
ユーザー名 | ei1417 |
投稿日時 | 2015-07-19 20:05:03 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 307 Byte |
最大実行時間 | 2237 ms |
最大メモリ使用量 | 672 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
BlockInput1.txt | AC | 11 ms | 672 KB |
1
|
BlockInput2.txt | AC | 14 ms | 612 KB |
1
|
BlockInput3.txt | AC | 11 ms | 538 KB |
1
|
BlockInput4.txt | AC | 12 ms | 601 KB |
1
|
BlockInput5.txt | AC | 1406 ms | 23119 KB |
1
|
BlockInput6.txt | AC | 1704 ms | 25016 KB |
1
|
BlockInput7.txt | AC | 2237 ms | 37609 KB |
1
|