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 <iostream>
#include <cstdio>
#include "combo.h"
#include <string>
using namespace std;
string aaa[]={"","A","B","X","Y"};
int visited[5];
string guess_sequence(int N)
{
string ans;
for (int i=1;i<=N;i++)
{
for (int j=1;j<=4;j++)
{
if (visited[j]==0&&press(ans+aaa[j])==i) {if (i==1) visited[j]=1;ans+=aaa[j];break;}
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |