結果
問題 | No.305 鍵(2) |
ユーザー | testestest |
提出日時 | 2015-12-17 00:40:03 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 113 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 23,056 KB |
実行使用メモリ | 24,564 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2023-09-23 08:16:57 |
合計ジャッジ時間 | 5,617 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
コンパイルメッセージ
main.c:1:12: warning: data definition has no type or storage class char s[11];i,t; ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] char s[11];i,t; ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(k){ ^~~~ main.c: In function ‘main’: main.c:2:1: warning: type of ‘k’ defaults to ‘int’ [-Wimplicit-int] main.c:4:1: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] puts(s);fflush(0); ^~~~ main.c:4:9: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] puts(s);fflush(0); ^~~~~~ main.c:5:3: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] k=atoi(gets(&k)); ^~~~ main.c:5:8: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] k=atoi(gets(&k)); ^~~~ /tmp/ccwuPZ82.o: In function `main': main.c:(.text.startup+0x38): warning: the `gets' function is dangerous and should not be used.
ソースコード
char s[11];i,t; main(k){ for(*s=48;i<10;){ puts(s);fflush(0); k=atoi(gets(&k)); t<k&&(t=k,s[++i]=48)||s[i]++; } }