結果

問題 No.304 鍵(1)
ユーザー Kmcode1
提出日時 2015-11-27 22:35:28
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 817 bytes
コンパイル時間 872 ms
コンパイル使用メモリ 96,780 KB
実行使用メモリ 25,484 KB
平均クエリ数 309.17
最終ジャッジ日時 2024-07-16 20:43:56
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<vector>
#include<list>
#include<deque>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<ctime>
#include<complex>
#include<functional>
#include<climits>
#include<cassert>
#include<iterator>
#include<unordered_map>
#include<unordered_set>
using namespace std;

int main() {
	for (int i = 0;;i++) {
		string s;
		int ii = i;
		s.push_back(ii % 10 + '0');
		ii /= 10;
		s.push_back(ii % 10 + '0');
		ii /= 10;
		s.push_back(ii % 10 + '0');
		reverse(s.begin(), s.end());
		cout << s << endl;
		string ans;
		cin >> ans;
		if (ans == "unlocked") {
			return 0;
		}
	}
	return 0;
}
0