結果
問題 | No.304 鍵(1) |
ユーザー | 👑 testestest |
提出日時 | 2015-12-16 23:39:42 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 76 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 18,944 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-16 22:03:15 |
合計ジャッジ時間 | 1,547 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
25,220 KB |
testcase_01 | AC | 24 ms
24,836 KB |
testcase_02 | AC | 53 ms
24,580 KB |
testcase_03 | AC | 24 ms
24,964 KB |
testcase_04 | AC | 38 ms
24,836 KB |
testcase_05 | AC | 25 ms
24,940 KB |
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^ main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^~~~ main.c: In function ‘main’: main.c:1:26: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} main.c:1:26: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^~~~~~ main.c:1:26: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:47: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^~~~~~ main.c:1:57: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);} | ^~~~ main.c: At top level: main.c:1:6: warning: array ‘s’ assumed to
ソースコード
char s[];i,j;main(){for(;printf("%03d\n",i++),fflush(0),gets(s),j=*s-117;);}