結果

問題 No.304 鍵(1)
ユーザー koyumeishikoyumeishi
提出日時 2015-09-18 15:54:49
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 70,704 KB
実行使用メモリ 24,036 KB
平均クエリ数 523.00
最終ジャッジ日時 2023-09-23 20:48:53
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
23,640 KB
testcase_01 AC 49 ms
23,808 KB
testcase_02 AC 31 ms
23,520 KB
testcase_03 AC 29 ms
24,036 KB
testcase_04 AC 50 ms
23,628 KB
testcase_05 AC 34 ms
23,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <random>
using namespace std;
int main(){
	mt19937 mt(114514);
	uniform_int_distribution<int> dstr(0,999);

	char buff[10];
	while(1){
		sprintf(buff, "%03d", dstr(mt));
		cout << buff << endl;

		string tmp;
		cin >> tmp;
		if(tmp == "unlocked"){
			return 0;
		}

	}
	
	return 0;
}
0