結果

問題 No.3 ビットすごろく
ユーザー testestesttestestest
提出日時 2016-03-13 21:59:08
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 834 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 24,984 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-13 23:46:27
合計ジャッジ時間 13,504 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 140 ms
4,380 KB
testcase_04 AC 38 ms
4,376 KB
testcase_05 AC 363 ms
4,376 KB
testcase_06 AC 160 ms
4,376 KB
testcase_07 AC 88 ms
4,380 KB
testcase_08 AC 292 ms
4,376 KB
testcase_09 AC 499 ms
4,380 KB
testcase_10 AC 707 ms
4,380 KB
testcase_11 AC 460 ms
4,380 KB
testcase_12 AC 355 ms
4,376 KB
testcase_13 AC 119 ms
4,376 KB
testcase_14 AC 618 ms
4,380 KB
testcase_15 AC 813 ms
4,376 KB
testcase_16 AC 772 ms
4,380 KB
testcase_17 AC 812 ms
4,380 KB
testcase_18 AC 101 ms
4,380 KB
testcase_19 AC 834 ms
4,380 KB
testcase_20 AC 28 ms
4,384 KB
testcase_21 AC 0 ms
4,376 KB
testcase_22 AC 647 ms
4,380 KB
testcase_23 AC 819 ms
4,376 KB
testcase_24 AC 817 ms
4,376 KB
testcase_25 AC 820 ms
4,376 KB
testcase_26 AC 1 ms
4,376 KB
testcase_27 AC 132 ms
4,380 KB
testcase_28 AC 747 ms
4,376 KB
testcase_29 AC 464 ms
4,376 KB
testcase_30 AC 6 ms
4,376 KB
testcase_31 AC 10 ms
4,380 KB
testcase_32 AC 414 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--;)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--;)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--;)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--;)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--;)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--;)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 function ‘scanf’ 

ソースコード

diff #

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);}
0