結果

問題 No.351 市松スライドパズル
ユーザー testestesttestestest
提出日時 2016-03-12 19:35:11
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 20,688 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2023-10-25 07:36:29
合計ジャッジ時間 2,631 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
9,472 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
testcase_13 AC 122 ms
9,384 KB
testcase_14 AC 123 ms
9,408 KB
testcase_15 AC 125 ms
9,472 KB
testcase_16 AC 125 ms
9,472 KB
testcase_17 AC 125 ms
9,472 KB
testcase_18 AC 125 ms
9,472 KB
testcase_19 AC 124 ms
9,472 KB
testcase_20 AC 125 ms
9,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int]
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      |          ^
main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      |                   ^
main.c:1:24: warning: type defaults to ‘int’ in declaration of ‘h’ [-Wimplicit-int]
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      |                        ^
main.c:1:29: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int]
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      |                             ^
main.c:1:31: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
      |                               ^~~~
main.c: In function ‘ma

ソースコード

diff #

c[1<<20],d[1<<20],a[2],h[2],q;main(i){for(scanf("%d%d%*d",h+1,h);~scanf("\n%c%d",c+i,d+i);i++);for(;--i;)a[q=c[i]&1]==d[i]?a[1-q]=(a[1-q]+h[q]-1)%h[q]:0;*a=!printf(*a+a[1]&1?"black":"white");}
0