#include #include using namespace std; int main(){ mt19937 mt(114514); uniform_int_distribution dstr(0,999); char buff[10]; while(1){ sprintf(buff, "%03d", dstr(mt)); cout << buff << endl; string tmp; cin >> tmp; if(tmp == "unlocked"){ return 0; } } return 0; }