# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1104866 | monaxia | 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"
#define pb push_back
#define ppb pop_back
#define fr first
#define sc second
#define all(v) v.begin(), v.end()
#define eps (long long)(1e-9)
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll Mod = 1e9 + 7;
string guess_sequence(int n){
string ans = "", temp = "ABXY";
int cnt = 0;
while(cnt != n){
for(auto& x : temp){
ans.pb(x);
if(press(ans) > cnt){
cnt ++;
break;
}
ans.ppb();
}
}
return ans;
}
signed main()
{
cin.tie(0)->sync_with_stdio(0);
if(fopen("blank.inp", "r")){
freopen("blank.inp", "r", stdin);
freopen("blank.out", "w", stdout);
}
// cout << 1; return 0;
ll n = 1;
// cin >> n;
// while(n) {
// solve();
// n --;
// cout << "\n";
// }
// cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
}