#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ srand(time(NULL)); bool f[10]={}; char d[10]={}; while(true){ string out; for(int i=0;i<10;i++){ if(f[i]) out=d[i]+out; else out=(char)('0'+rand()%10)+out; } cout<>x>>res; if(res[0]=='u') return 0; string test=out; for(int i=0;i<10;i++){ if(f[i]) continue; string test=out; test[i]='0'+rand()%10; cout<>y>>test_res; if(test_res[0]=='u') return 0; if(x>y){ f[i]=true; d[i]=out[i]; }else if(x