# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95706 | helloworldworld | Combo (IOI18_combo) | C++14 | 104 ms | 444 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 <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int n) {
char arr[4];
arr[0]='A';
arr[1]='B';
arr[2]='X';
arr[3]='Y';
string p="";
int coins=press(p);
string S="";
for(int i=0;i<n;i++) {
for(int j=0;j<4;j++){
if(press(p+arr[j])==i+1){
p+=arr[j];
break;
}
}
}
return p;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |