結果
| 問題 | 
                            No.305 鍵(2)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-12-26 23:30:37 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 785 bytes | 
| コンパイル時間 | 708 ms | 
| コンパイル使用メモリ | 85,156 KB | 
| 実行使用メモリ | 25,348 KB | 
| 平均クエリ数 | 86.69 | 
| 最終ジャッジ日時 | 2024-07-17 02:05:49 | 
| 合計ジャッジ時間 | 1,752 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
#include <fstream>
#include <cassert>
using namespace std;
//#include<bits/stdc++.h>
int main() {
	string d = "0000000000";
	
	
	string a;
		int n, b = 0;
	for (int i = 0; i < 10; i++) {
		char y = '0';
	
		for (int j = 0; j < 10; j++) {
			fflush(0);
			cout << d << endl;
			cin >> n >> a;
			if (a == "unlocked")return 0;
			if (b < n) {
				b = n; y = d[i];
			}
			
			d[i]+=1;
		//	cout << i << endl;
			
		}
		d[i] = y;
	}
	return 0;
}