# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
313677 | baibhav26062008 | Combo (IOI18_combo) | C++14 | 1 ms | 200 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 REP(i,n) for(int i=0; i<(n); i++)
string guess_sequence(int N){
string dir="ABXY";
string ans="";
REP(i,N){
ans = "";
ans+=dir[i];
REP(j,N){
if (j == i) continue;
ans += dir[j];
cout << press(ans) << endl;
if (press(ans)==N){
cout << press(ans) << endl;
cout << ans << endl;
return ans;
}
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |