# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
206468 | vardan__02 | Combo (IOI18_combo) | C++14 | 104 ms | 432 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 <algorithm>
#include <iostream>
#include <fstream>
#include <cstring>
#include <string>
#include "combo.h"
#include <vector>
#include <cstdio>
#include <queue>
#include <deque>
#include <stack>
#include <list>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
string guess_sequence(int N)
{
string ans="";
string ban="ABXY";
int x;
while(ans.size()!=N)
{
for(int i=0;i<=3;i++)
{
x = press(ans+ban[i]);
if(x==ans.size()+1)
{
ans+=ban[i];
break;
}
}
}
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |