# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1222124 | diana | Combo (IOI18_combo) | C++20 | 20 ms | 456 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
const int C = 4;
int N;
string c[C] = {"A", "X", "B", "Y"};
string guess_sequence(int n)
{
N = n;
string s = "";
for(int i=1; i<=n; i++)
for(int j=0; j<C; j++)
{
string t = s + c[j];
int coins = press(t);
if(coins == i)
{
s = t;
break;
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |