| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1305861 | farica | 콤보 (IOI18_combo) | C++20 | 21 ms | 448 KiB |
#include "combo.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
using vi = vector<int>;
using pi = pair<int,int>;
string guess_sequence(int N) {
string ans = "";
int prev = 0;
char c[4] = {'A', 'B', 'X', 'Y'};
for(int i=0; i<N; ++i) {
for(char ch: c) {
int tmp = press(ans + ch);
if(tmp == prev+1) {
ans += ch;
++prev;
break;
}
}
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
