結果
問題 | No.305 鍵(2) |
ユーザー | 👑 testestest |
提出日時 | 2015-12-17 00:47:16 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 19,200 KB |
実行使用メモリ | 40,404 KB |
最終ジャッジ日時 | 2024-07-16 22:03:58 |
合計ジャッジ時間 | 6,605 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
コンパイルメッセージ
main.c:1:12: warning: data definition has no type or storage class 1 | 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] 1 | char s[11];i,t; | ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | 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 ‘printf’ [-Wimplicit-function-declaration] 4 | printf("%s\n",s);fflush(0); | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | char s[11];i,t; main.c:4:1: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 4 | printf("%s\n",s);fflush(0); | ^~~~~~ main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:4:18: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] 4 | printf("%s\n",s);fflush(0); | ^~~~~~ main.c:5:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 5 | scanf("%d%*s",&k); | ^~~~~ main.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:5:1: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] main.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
ソースコード
char s[11];i,t; main(k){ for(*s=48;i<10;){ printf("%s\n",s);fflush(0); scanf("%d%*s",&k); t<k&&(t=k,s[++i]=48)||s[i]++; } return 0; }