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 guess_sequence(int N){
string chars[] = {"A", "B", "X", "Y"};
string out;
for (int i = 0; i < N; i++){
for (int j = 0; j < 4; j++){
int num = press(out+chars[j]);
if (num == i+1) {
out.append(chars[i]);
break;
}
}
}
return out;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |