| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1346744 | samuelandrianoo_ | 콤보 (IOI18_combo) | C++20 | 15 ms | 496 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
string guess_sequence(int n){
ll len = n;
string s = "";
char arr[5] = {'A', 'B', 'X', 'Y'};
for (ll i = 0; i <= n - 1; i++){
bool yes = 0;
for (ll j = 0; j < 4; j++){
string guess = s + arr[j];
ll ans = press(guess);
if (ans == i + 1){
s = guess;
yes = 1;
break;
}
}
}
return s;
}
/*
panggil aja 4 * 2000
*/| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
