結果

問題 No.587 七対子
ユーザー %20%20
提出日時 2017-11-04 19:06:18
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 29,184 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-03 04:04:26
合計ジャッジ時間 1,507 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 0 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 WA -
testcase_11 AC 1 ms
5,376 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 0 ms
5,376 KB
testcase_16 AC 1 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
testcase_18 AC 1 ms
5,376 KB
testcase_19 AC 1 ms
5,376 KB
testcase_20 AC 1 ms
5,376 KB
testcase_21 AC 1 ms
5,376 KB
testcase_22 AC 1 ms
5,376 KB
testcase_23 AC 1 ms
5,376 KB
testcase_24 AC 0 ms
5,376 KB
testcase_25 AC 1 ms
5,376 KB
testcase_26 AC 1 ms
5,376 KB
testcase_27 AC 1 ms
5,376 KB
testcase_28 AC 1 ms
5,376 KB
testcase_29 AC 0 ms
5,376 KB
testcase_30 AC 1 ms
5,376 KB
testcase_31 AC 1 ms
5,376 KB
testcase_32 WA -
testcase_33 AC 1 ms
5,376 KB
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'q' [-Wimplicit-int]
main.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
      |     ^~~~
main.c: In function 'main':
main.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:5: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:5: warning: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:5: warning: type of 'f' defaults to 'int' [-Wimplicit-int]
main.c:1:58: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
      |                                                          ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
main.c:1:71: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
      |                                                                       ^~~~
main.c:1:71: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:93: warning: pointer type mismatch in conditional expression
    1 | q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
      |                                                                                             ^
main.c: At top level:
main.c:1:1: warning: array 'q' assumed to have one element
    1 | q[];m

ソースコード

diff #

q[];main(i,c,k,f){for(k=7;i++<14;*q^=c,f*=q[c]<3)k-=!q[c=getchar()]++;puts(k|!f?"Impossible":q);}
0