# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1022642 | Joshi503 | Combo (IOI18_combo) | C++14 | 1 ms | 432 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;
// string res = "BAYXY";
// int press(string p){
// int j = 0;
// int tmp = 0;
// for(int i = 0; i < (int)p.size(); i++){
// if(p[i] == res[j]) j++;
// else j = 0;
// tmp = max(tmp, j);
// }
// cout << tmp << "\n";
// return tmp;
// }
string aux(string k, string ca){
string ka=k;
string k1=k;
ka+=ca[1];
ka+=ca[0];
ka+=k;
ka+=ca[1];
ka+=ca[1];
ka+=k;
ka+=ca[1];
ka+=ca[2];
ka+=k;
ka+=ca[0];
int res=press(ka);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |