結果
問題 | No.305 鍵(2) |
ユーザー | kotatsugame |
提出日時 | 2017-08-16 00:20:04 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 59.31 |
最終ジャッジ日時 | 2024-07-17 01:24:09 |
合計ジャッジ時間 | 1,746 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
24,580 KB |
testcase_01 | AC | 25 ms
24,836 KB |
testcase_02 | AC | 27 ms
24,964 KB |
testcase_03 | AC | 24 ms
25,220 KB |
testcase_04 | AC | 25 ms
24,836 KB |
testcase_05 | AC | 26 ms
25,220 KB |
testcase_06 | AC | 24 ms
24,836 KB |
testcase_07 | AC | 27 ms
24,964 KB |
testcase_08 | AC | 25 ms
24,580 KB |
testcase_09 | AC | 25 ms
24,836 KB |
testcase_10 | AC | 24 ms
24,836 KB |
testcase_11 | AC | 24 ms
25,220 KB |
testcase_12 | AC | 24 ms
25,220 KB |
コンパイルメッセージ
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); }