# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1129903 | pedreitorzelda | Combo (IOI18_combo) | C++20 | 22 ms | 464 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N){
string ans = "";
vector<char>possible = {'A','B','X','Y'};
for(int i=0;i<N;i++){
for(int j=0;j<3;j++){
string q = ans+possible[j];
int tmp = press(q);
if(tmp==i+1){
ans+=possible[j];
break;
}
}if(ans.size()==i)ans+=possible[3];
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |