# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
348353 | NachoLibre | Combo (IOI18_combo) | C++14 | 46 ms | 568 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;
#ifdef wambule
string cs;
int press(string s) {
int dr = 0;
for(int i = 0; i < s.size(); ++i) {
for(int j = i; j < min((int)s.size(), i + (int)cs.size()); ++j) {
if(s[j] != cs[j - i]) {
dr = max(dr, j - i);
break;
}
if(j + 1 == (int)s.size() || j + 1 == i + (int)cs.size()) {
dr = max(dr, j - i + 1);
}
}
}
return dr;
}
#else
#include "combo.h"
#endif
string s = "";
int ask(vector<string> v) {
assert(v.size() < 5);
string c = "";
for(string t : v) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |