結果
| 問題 |
No.27 板の準備
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-04-06 18:57:19 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 350 ms / 5,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 434 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 12:28:38 |
| 合計ジャッジ時間 | 7,796 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int]
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
| ^
main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
| ^
main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
| ^
main.c:1:25: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int]
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
| ^
main.c:1:31: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
1 | d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););fo
ソースコード
d[99],a[5],i=1<<20,t=31,m=57,*p;main(j){for(;~scanf("%d",a+j++););for(;--i;m=m>++t?t:m){for(;--t;d[t]=9);for(;--j?*(p=d+t+(i>>5*j&31))>d[t]?*p=d[t]+1:1:(j=4*(++t<31)););for(;++j<5;t+=d[a[j]]+4);}t=!putchar(m);}
testestest