結果

問題 No.304 鍵(1)
ユーザー square1001square1001
提出日時 2016-10-29 18:14:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 1,520 ms
コンパイル使用メモリ 166,592 KB
実行使用メモリ 24,180 KB
平均クエリ数 143.50
最終ジャッジ日時 2023-09-24 00:40:40
合計ジャッジ時間 2,451 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,328 KB
testcase_01 AC 27 ms
23,580 KB
testcase_02 AC 23 ms
23,964 KB
testcase_03 AC 28 ms
23,964 KB
testcase_04 AC 43 ms
24,180 KB
testcase_05 AC 29 ms
23,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
string f(int x) {
	string res = to_string(x);
	while(res.size() < 3) res = '0' + res;
	return res;
}
int main() {
	string res;
	for(int i = 999; ; i++) {
		cout << f(i % 1000) << endl;
		cin >> res;
		if(res == "unlocked") break;
	}
	return 0;
}
0