結果
| 問題 |
No.3 ビットすごろく
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-03-13 21:59:08 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 773 ms / 5,000 ms |
| コード長 | 185 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 21,248 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-01 07:47:17 |
| 合計ジャッジ時間 | 12,657 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^
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 ‘s’ [-Wimplicit-int]
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^
main.c:1:16: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int]
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^
main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^
main.c:1:21: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^
main.c:1:23: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
| ^~~~
main.c: In function ‘main’:
main.c:1:23: warning: type of ‘j’ defaults to ‘int’
ソースコード
a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;)for(p=a;++p<a+n;j=!*p||(!p[j]|p[j]>*p?p[j]=1+*p:0,!p[-j]|p[-j]>*p?p[-j]=1+*p:1))for(k=p-a;k&=k-1;)j++;n=!printf("%d",*p-!*p);}
testestest