結果

問題 No.3 ビットすごろく
ユーザー testestesttestestest
提出日時 2016-03-13 21:57:52
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 649 ms / 5,000 ms
コード長 188 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 24,876 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-13 23:47:16
合計ジャッジ時間 11,145 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 125 ms
4,376 KB
testcase_04 AC 34 ms
4,376 KB
testcase_05 AC 304 ms
4,380 KB
testcase_06 AC 138 ms
4,376 KB
testcase_07 AC 77 ms
4,380 KB
testcase_08 AC 241 ms
4,500 KB
testcase_09 AC 401 ms
4,380 KB
testcase_10 AC 546 ms
4,380 KB
testcase_11 AC 371 ms
4,380 KB
testcase_12 AC 296 ms
4,380 KB
testcase_13 AC 107 ms
4,376 KB
testcase_14 AC 491 ms
4,380 KB
testcase_15 AC 640 ms
4,376 KB
testcase_16 AC 600 ms
4,376 KB
testcase_17 AC 639 ms
4,380 KB
testcase_18 AC 89 ms
4,376 KB
testcase_19 AC 648 ms
4,376 KB
testcase_20 AC 24 ms
4,380 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 AC 506 ms
4,380 KB
testcase_23 AC 649 ms
4,376 KB
testcase_24 AC 648 ms
4,376 KB
testcase_25 AC 642 ms
4,376 KB
testcase_26 AC 1 ms
4,376 KB
testcase_27 AC 116 ms
4,380 KB
testcase_28 AC 589 ms
4,376 KB
testcase_29 AC 377 ms
4,380 KB
testcase_30 AC 5 ms
4,376 KB
testcase_31 AC 8 ms
4,376 KB
testcase_32 AC 343 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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]
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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]
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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]
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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]
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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]
 a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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’ [-Wimplicit-int]
main.c:1:40: warning: implicit declaration of fun

ソースコード

diff #

a[10030],s=1e4,k,n,*p;main(j){for(a[1]=scanf("%d",&n);s--;p--)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);}
0