結果

問題 No.304 鍵(1)
ユーザー tassi_2012tassi_2012
提出日時 2015-12-17 10:34:32
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 23,576 KB
実行使用メモリ 24,108 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:20:33
合計ジャッジ時間 1,081 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,072 KB
testcase_01 AC 29 ms
24,108 KB
testcase_02 AC 60 ms
23,460 KB
testcase_03 AC 27 ms
24,084 KB
testcase_04 AC 42 ms
23,388 KB
testcase_05 AC 28 ms
23,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<string.h>

int main(void)
{
	int password = 0;
	char locked[] = "locked";
	char result[255];
	do{
		printf("%03d\n", password++);
		fflush(stdout);
		scanf("%s", result);
	}while(strcmp(result, locked) == 0);
	return 0;
}
0