#define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #define rep(i,n) for(int i = 0;i < n;i++) #define P(p) cout<<(p)<> ret; return ret; } ll gcd(ll a, ll b){ if (b > a)swap(a, b); if (b == 0)return a; else{ return gcd(b, a%b); } } void solve() { string s = "??????????"; int ansnum; string ans; int count = 0; for (int i = 0; i < 10; i++){ for (int j = 0; j < 10; j++){ if (s[i] == '?'){ s[i] = '0'+j; cout << s << endl; cin >> ansnum >> ans; if (ansnum > count){ count++; } else{ s[i] = '?'; } } } } } int main() { solve(); return 0; }