結果

問題 No.100 直列あみだくじ
ユーザー testestesttestestest
提出日時 2017-02-28 19:45:58
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 119 bytes
コンパイル時間 899 ms
コンパイル使用メモリ 23,212 KB
実行使用メモリ 4,496 KB
最終ジャッジ日時 2023-09-02 17:59:06
合計ジャッジ時間 4,111 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 0 ms
4,372 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 0 ms
4,368 KB
testcase_10 AC 1 ms
4,372 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 1 ms
4,368 KB
testcase_15 WA -
testcase_16 AC 1 ms
4,372 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 1 ms
4,368 KB
testcase_20 AC 0 ms
4,368 KB
testcase_21 AC 1 ms
4,372 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 0 ms
4,368 KB
testcase_25 WA -
testcase_26 AC 1 ms
4,368 KB
testcase_27 AC 0 ms
4,368 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 RE -
testcase_31 AC 0 ms
4,368 KB
testcase_32 RE -
testcase_33 AC 1 ms
4,368 KB
testcase_34 AC 0 ms
4,496 KB
testcase_35 WA -
testcase_36 AC 0 ms
4,372 KB
testcase_37 RE -
testcase_38 AC 1 ms
4,368 KB
testcase_39 RE -
testcase_40 AC 1 ms
4,368 KB
testcase_41 RE -
testcase_42 RE -
testcase_43 AC 1 ms
4,372 KB
testcase_44 WA -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
   ^
main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int]
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
         ^
main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
           ^
main.c:1:13: warning: return type defaults to ‘int’ [-Wimplicit-int]
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
             ^~~~
main.c: In function ‘main’:
main.c:1:13: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:27: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
                           ^~~~~
main.c:1:27: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:27: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
                           ^~~~~
main.c:1:98: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 s,a[51],y,i;main(c){for(;~scan

ソースコード

diff #

s,a[51],y,i;main(c){for(;~scanf("%d",a+i)?y=++i:(y=a[y])?a[y]=0,++c:(s^=c%2<<c/2,c=1,y=--i););s=!puts(s/2?"No":"Yes");}
0