結果
問題 |
No.709 優勝可能性
|
ユーザー |
|
提出日時 | 2018-06-29 23:10:25 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 138 ms / 3,500 ms |
コード長 | 303 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 00:12:05 |
合計ジャッジ時間 | 2,578 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'R' [-Wimplicit-int] main.c:1:7: warning: type defaults to 'int' in declaration of 'MR' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^~ main.c:1:14: warning: type defaults to 'int' in declaration of 'cnt' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^~~ main.c:1:25: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:1:38: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:1:44: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:1:50: warning: type defaults to 'int' in declaration of 'ans' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^~~ main.c:1:54: warning: data definition has no type or storage class 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:1:54: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:56: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 1 | R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; | ^ main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main(n,m) | ^~~~ main.c: In function 'main': main.c:2:1:
ソースコード
R[11],MR[11],cnt[1<<17],a[11][1<<17],b[11],c[11],ans;i,j; main(n,m) { for(scanf("%d%d",&n,&m);i<n;i++) { for(j=0;j<m;j++) { scanf("%d",R+j); if(MR[j]<R[j])for(MR[j]=R[j];c[j]<b[j];c[j]++)ans-=!--cnt[a[j][c[j]]]; MR[j]-R[j]||(ans+=!cnt[a[j][b[j]++]=i]++); } printf("%d\n",ans); } }