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>
using namespace std;
int query(string s);
string guess(int n, int s) {
string ans = "";
for(int i = 0;i<s;i++) {
ans+=char(i+'a');
}
do {
if(query(ans.substr(0, n)) == n)return ans.substr(0, n);
}while(next_permutation(ans.begin(), ans.end()));
return "";
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |