# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
787172 | resolve100 | Combo (IOI18_combo) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "combo.h"
#define ll long long
#define ull unsigned ll
#define pb push_back
#define fast ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
string chars[] = {"A", "B", "X", "Y"};
string guess_sequence(int N){
string out;
for (int i = 0; i < 3; i++){
for (int j = 0; j < 4; j++){
int num = press(out+chars[j]);
if (num == i+1) {
out.append(chars[j]);
break;
}
}
}
return out;
}
int main(){
cout << guess_sequence(3);
return 0;
}