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 "combo.h"
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;
str guess_sequence(int n){
str s = "";
int r = 0;
while(n--){
int a = press(s+"A");
int b = press(s+"B");
int x = press(s+"X");
int y = press(s+"Y");
if(a > r){
r = a;
s+="A";
continue;
}
if(b > r){
r = b;
s+="B";
continue;
}
if(x > r){
r = x;
s+="X";
continue;
}
if(y > r){
r = y;
s+="Y";
continue;
}
cout << s << "\n";
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |