This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
//OJUZ grind baby
#include <bits/stdc++.h>
#include <combo.h>
using namespace std;
#define ll long long
char word[] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int N){
string ans = "";
for(int cur = 0; cur < N; cur++){
for(int i = 0; i < 4; i++){
string temp = ans + word[i];
int a = press(temp);
if(a == cur + 1){
ans = temp;
break;
}
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |