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>
using namespace std;
string temp;
std::string guess_sequence(int N) {
char s[4] = {'A','B','X','Y'};
do{
string p = "";
for(int i = 0;i<N;i++){
p += s[i];
}
int coins = press(p);
if(coins == N){
return p;
}
}while(next_permutation(s,s + 4));
return temp;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |