# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
813258 | Pikachu | Combo (IOI18_combo) | C++17 | 29 ms | 668 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>
using namespace std;
template<typename T>
inline bool maxi(T &x, const T &val)
{
if (x < val) return x = val, true;
return false;
}
template<typename T>
inline bool mini(T &x, const T &val)
{
if (x > val) return x = val, true;
return false;
}
int press(string p);
char c[4] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int n)
{
string ans = "";
if (press("AB")) {
if (press("A")) ans += "A";
else ans += "B", swap(c[0], c[1]);
}
else {
if (press("X")) ans += "X", swap(c[0], c[2]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |