# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
749936 | vjudge1 | 콤보 (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"combo.h"
#include<bits/stdc++.h>
#define ll long long
#define endl "\n"
using namespace std;
char a[4] = {'A', 'B', 'X', 'Y'};
ll n;
string sequence(ll N)
{
n = N;
string s = "";
for(ll i = 1; i <= n; i++)
{
ll loc = 0;
ll ret = 0;
while(ret != i) ret = press(s + a[loc]);
s += a[loc];
}
return s;
}