| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 998478 | ezzzay | Combo (IOI18_combo) | C++14 | 57 ms | 940 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "combo.h"
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
std::string guess_sequence(int N) {
int k=0;
string p;
for(int i=0;i<N;i++){
string tmp=p+'X';
if(press(tmp)==k+1){
p+='X';
k++;
continue;
}
tmp=p+'Y';
if(press(tmp)==k+1){
p+='Y';
k++;
continue;
}
tmp=p+'A';
if(press(tmp)==k+1){
p+='A';
k++;
continue;
}
tmp=p+'B';
if(press(tmp)==k+1){
p+='B';
k++;
continue;
}
}
return p;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
