結果

問題 No.304 鍵(1)
ユーザー tassi_2012tassi_2012
提出日時 2015-12-22 20:02:29
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 25,056 KB
実行使用メモリ 23,880 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 22:31:31
合計ジャッジ時間 1,217 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,472 KB
testcase_01 AC 31 ms
23,484 KB
testcase_02 AC 63 ms
23,268 KB
testcase_03 AC 30 ms
23,220 KB
testcase_04 AC 45 ms
23,688 KB
testcase_05 AC 30 ms
23,880 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