# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1222124 | diana | 콤보 (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... |