結果

問題 No.197 手品
ユーザー testestesttestestest
提出日時 2016-02-20 10:31:23
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 23,800 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-09 20:46:12
合計ジャッジ時間 1,898 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a[],s,i,t;main(k){for(;k=~getchar();k+11?a[i]=a[i]*2-k%2,t+=i^k&1:scanf("%d\n",&s,i++));i=!puts(t-3|(s?s-1?0:(*a*=a[1])==4|*a==18|*a==25:*a-a[1])?"SUCCESS":"FAILURE");}
0