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 str);
string guess(int n , int k)
{
string s;
for(int i=0;i<n;i++)
{
s+='a';
}
while(1)
{
for(int i=0;i<n;i++)
{
if(s[i]==k+'a'-1)s[i]='a';
else {s[i]++;i=n+1;}
}
int x=query(s);
if(x==n)return s;
}
}
# | 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... |