Submission #348353

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
3483532021-01-14 18:01:06NachoLibreCombo (IOI18_combo)C++14
100 / 100
46 ms568 KiB
#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) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...