結果
問題 | No.305 鍵(2) |
ユーザー | kotatsugame |
提出日時 | 2017-08-16 00:06:16 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 44.31 |
最終ジャッジ日時 | 2024-07-17 01:23:46 |
合計ジャッジ時間 | 1,946 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
25,220 KB |
testcase_01 | AC | 32 ms
24,964 KB |
testcase_02 | AC | 31 ms
24,836 KB |
testcase_03 | AC | 32 ms
24,836 KB |
testcase_04 | AC | 32 ms
25,220 KB |
testcase_05 | AC | 33 ms
25,220 KB |
testcase_06 | AC | 32 ms
24,952 KB |
testcase_07 | AC | 33 ms
25,220 KB |
testcase_08 | AC | 31 ms
25,220 KB |
testcase_09 | AC | 31 ms
24,836 KB |
testcase_10 | AC | 33 ms
24,836 KB |
testcase_11 | AC | 31 ms
24,580 KB |
testcase_12 | AC | 32 ms
25,216 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'f' [-Wimplicit-int] main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:13: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:20: warning: data definition has no type or storage class 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:20: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:22: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 1 | f[10],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 | f[10],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);retur
ソースコード
f[10],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;)for(i=0;i<10&&c<10;c-k?f[i]++,c<k?c=k:--a[i]:0,i++)k=f[i]?c:o(a[i]++); }