結果
問題 | No.601 Midpoint Erase |
ユーザー | 👑 testestest |
提出日時 | 2017-12-01 01:17:36 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 95 bytes |
コンパイル時間 | 1,018 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-05-05 16:36:42 |
合計ジャッジ時間 | 1,995 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 12 ms
5,376 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 17 ms
5,376 KB |
testcase_10 | WA | - |
testcase_11 | AC | 24 ms
5,376 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | WA | - |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 1 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^ 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 'x' [-Wimplicit-int] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^ main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^ main.c:1:12: warning: return type defaults to 'int' [-Wimplicit-int] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^~~~ main.c: In function 'main': main.c:1:12: warning: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:26: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");} | ^~~~~ main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:71: warning: implicit declaration of function 'put
ソースコード
s,x,y,a[4];main(i){for(;~scanf("%d",&y);x=y)s+=i--&i?a[x%2*2+y%2]++:0;puts(s%2?"Alice":"Bob");}