結果

問題 No.304 鍵(1)
ユーザー 成りすましはダメよ成りすましはダメよ
提出日時 2015-12-05 09:15:08
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 23,096 KB
実行使用メモリ 24,180 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:15:45
合計ジャッジ時間 1,053 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,180 KB
testcase_01 AC 28 ms
23,640 KB
testcase_02 AC 59 ms
23,400 KB
testcase_03 AC 28 ms
23,724 KB
testcase_04 AC 42 ms
23,304 KB
testcase_05 AC 28 ms
23,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:1: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
 gets(s);
 ^~~~
 fgets
/tmp/cckILv9n.o: In function `main':
main.c:(.text.startup+0x31): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

#include <stdio.h>

int main(void) {
char s[257];
int i = 0;
start:
printf("%03d\n",i++);
fflush(stdout);
gets(s);
if (s[0]=='l') goto start;


return 0;}
0