| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 600538 | Shithila | Combo (IOI18_combo) | C++14 | 1 ms | 208 KiB |
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"
using namespace std;
std::string guess_sequence(int N) {
string p = "";
string ans;
char add[4]={'A','B','X','Y'};
int firstindex=0;
int len=0;
for(int i=0;i<4;i++)
{
ans=p+add[i];
len=len+press(ans);
if(len==1)
{
firstindex=i;
p=p+add[i];
break;
}
}
for(int j=1;j<N;j++)
{
for(int i=0;i<4;i++)
{
if(i==firstindex)
{
continue;
}
ans=p+add[i];
len=len+press(ans);
if(len==j+1)
{
firstindex=i;
p=p+add[i];
break;
}
}
}
return p;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
