結果
| 問題 | 
                            No.305 鍵(2)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             h_noson
                         | 
                    
| 提出日時 | 2016-03-13 13:57:43 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 30 ms / 2,000 ms | 
| コード長 | 712 bytes | 
| コンパイル時間 | 648 ms | 
| コンパイル使用メモリ | 62,052 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 86.69 | 
| 最終ジャッジ日時 | 2024-07-16 23:05:29 | 
| 合計ジャッジ時間 | 1,953 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define RREP(i,s,e) for (i = e-1; i >= s; i--)
#define rrep(i,n) RREP(i,0,n)
#define REP(i,s,e) for (i = s; i < e; i++)
#define rep(i,n) REP(i,0,n)
#define INF 1e8
typedef long long ll;
int main() {
    int i, j, x;
    string res, s = "0000000000";
    rep (i,10) {
        int y;
        string t = s;
        cout << t << endl;
        cin >> x >> res;
        if (x == 10)
            return 0;
        rep (j,9) {
            t[i]++;
            cout << t << endl;
            cin >> y >> res;
            if (y == 10)
                return 0;
            if (x < y)
                s = t;
        }
    }
    return 0;
}
            
            
            
        
            
h_noson