# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1012364 | MahmytM | Combo (IOI18_combo) | C++17 | 0 ms | 0 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;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
string guess_sequence(int n){
char z[5];
z[1]='A';
z[2]='B';
z[3]='X';
z[4]='Y';
for(int i=1;i<=n;i++){
ans+='#';
}
while(true){
for(int j=1;j<=4;j++){
if(z[j]==ans[0] and ans.size()!=0){
continue;
}
int in=press(ans);
if(in==n){
return ans;
}
for(int i=in;i<n;i++){
ans[i]=z[js];
}
}
}
}