結果

問題 No.351 市松スライドパズル
ユーザー kotatsugamekotatsugame
提出日時 2017-08-10 11:25:31
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 33,024 KB
最終ジャッジ日時 2024-04-20 08:33:16
合計ジャッジ時間 3,595 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
33,024 KB
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 1 ms
6,944 KB
testcase_03 AC 1 ms
6,944 KB
testcase_04 AC 0 ms
6,940 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 1 ms
6,944 KB
testcase_07 AC 1 ms
6,944 KB
testcase_08 AC 0 ms
6,944 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 1 ms
6,944 KB
testcase_11 AC 0 ms
6,944 KB
testcase_12 AC 1 ms
6,944 KB
testcase_13 AC 136 ms
32,256 KB
testcase_14 AC 139 ms
32,384 KB
testcase_15 AC 139 ms
32,896 KB
testcase_16 AC 138 ms
33,024 KB
testcase_17 AC 134 ms
33,024 KB
testcase_18 AC 135 ms
33,024 KB
testcase_19 AC 141 ms
33,024 KB
testcase_20 AC 136 ms
33,024 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: warning: data definition has no type or storage class
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      |   ^
main.c:1:3: warning: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
main.c:1:5: warning: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      |     ^
main.c:1:7: warning: data definition has no type or storage class
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      |       ^
main.c:1:7: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:9: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      |         ^
main.c:1:11: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
      |           ^~~~
main.c: In function 'main':
main.c:1:11: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:11: warning: type of 'r' defaults to 'int' [-Wimplicit-int]
main.c:1:26: warning: implicit declaration of function 's

ソースコード

diff #

i;h,w;x,y;main(c,r){i--?~scanf("\n%c%d",&c,&r)?main(),c%2?y==r&&(x=(x+h-1)%h):x==r&&(y=(y+w-1)%w):0:main(scanf("%d%d%*d",&h,&w))+puts(x+y&1?"black":"white");}
0