# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1118475 | VinhLuu | 회문 (APIO14_palindrome) | C++17 | 880 ms | 48296 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
//#define int long long
#define ll long long
#define fi first
#define se second
#define pb push_back
#define all(lmao) lmao.begin(), lmao.end()
using namespace std;
typedef pair<ll, ll> pii;
const int N = 3e5 + 5;
const int M = 1e6 + 5;
const ll oo = 1e16;
int n, a[N];
int pos[N], sa[N], gap, tmp[N], lcp[N], LG[N], dp[22][N];
ll ans = 0;
bool cmp(int x,int y){
if(pos[x] != pos[y]) return pos[x] < pos[y];
x += gap;
y += gap;
return (x <= n && y <= n ? pos[x] < pos[y] : x > y);
}
void SA(){
gap = 1;
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |