# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
486178 | Turin | Palindromes (APIO14_palindrome) | C++14 | 55 ms | 112844 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;
using ll = long long;
using ii = pair<int,int>;
#define ff first
#define se second
#define pb push_back
#define all(x) (x).begin(),(x).end()
const int mod = 1e9 + 7;
const int inf = 1e9 + 9;
const int mx = 1e6 + 5;
int tree[mx][26], idx;
char s[mx]; int ans[mx];
int len[mx], link[mx], t, occ[mx];
void init(){
memset(ans, 0, sizeof ans);
memset(occ, 0, sizeof occ);
memset(tree, 0, sizeof tree);
len[1] = -1; link[1] = 1;
len[2] = 0; link[2] = 1;
idx = t = 2;
}
void extend(int p){
while(s[p-len[t]-1] != s[p]) t=link[t];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |