結果
問題 | No.305 鍵(2) |
ユーザー | kotatsugame |
提出日時 | 2017-08-16 00:19:28 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 53,636 KB |
平均クエリ数 | 55.00 |
最終ジャッジ日時 | 2024-07-16 14:02:15 |
合計ジャッジ時間 | 3,648 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
25,220 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 20 ms
25,220 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[10],s[9],c;i,k; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:7: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 1 | a[10],s[9],c;i,k; | ^ main.c:1:12: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | a[10],s[9],c;i,k; | ^ main.c:1:14: warning: data definition has no type or storage class 1 | a[10],s[9],c;i,k; | ^ main.c:1:14: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:16: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 1 | a[10],s[9],c;i,k; | ^ main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));gets(s);return atoi(s);} | ^ main.c: In function 'o': main.c:2:19: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));gets(s);return atoi(s);} | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | a[10],s[9],c;i,k; main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));gets(s);return atoi(s);} | ^~~~~~ main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:2:39: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));gets(s);return atoi(s);} | ^~~~~~ main.c:2:47: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 2 | o(){for(k=0;k<10;)print
ソースコード
a[10],s[9],c;i,k; o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));gets(s);return atoi(s);} main(){ for(c=o();c<10;c++,i++)for(;o(a[i]++)<c;a[i]>8?c+=a[i]=-1:0); }