# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
745436 | Alexandruabcde | Match (CEOI16_match) | C++14 | 2061 ms | 952 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;
constexpr int NMAX = 1e5 + 5;
constexpr int SIGMAX = 26;
bool exist;
int sp[NMAX];
char ans[NMAX];
void Precompute (string S) {
deque <char> D;
for (int i = 0; i < S.size(); ++ i ) {
if (D.empty() || D.back() != S[i]) {
D.push_back(S[i]);
}
else {
D.pop_back();
}
}
exist = D.empty();
}
int pos[SIGMAX];
int bef[NMAX];
void Solve (string S) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |