結果
問題 |
No.3 ビットすごろく
|
ユーザー |
👑 ![]() |
提出日時 | 2016-04-05 00:33:16 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 255 ms / 5,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 07:48:41 |
合計ジャッジ時間 | 4,702 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
コンパイルメッセージ
main.c:1:3: warning: multi-character character constant [-Wmultichar] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^~~~ main.c:1:1: warning: data definition has no type or storage class 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^ main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^ main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);} | ^ main.c:1:22: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a
ソースコード
a['~~'],*p,s=2e3,n,k;main(j){for(*a=scanf("%d",&n);s--;)for(p=a;!(k&=k-1)?j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1),k=++p-a,k*=k<n:++j;);n=!printf("%d",*p-1);}