結果
| 問題 | No.27 板の準備 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-04-06 19:06:32 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 356 ms / 5,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 30,280 KB |
| 最終ジャッジ日時 | 2026-02-23 21:05:35 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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: In function ‘main’:
main.c:1:47: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
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: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
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);}
ソースコード
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