# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
634257 | Mahdi | Dabbeh (INOI20_dabbeh) | C++17 | 2081 ms | 192760 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define F first
#define S second
typedef long long ll;
typedef pair<int, int> pii;
const int N=5e5+5, M=1e4+5;
int n, q, h, dis[N], nxt[N][28], C[N][28], f[N], p[N][22], ff[N];
vector<int>g[N];
string s[M], L;
void add(const string &t){
int v=0;
for(int i=0;i<t.size();++i){
int z=t[i]-'a';
if(nxt[v][z]==0){
dis[h]=dis[v]+1;
nxt[v][z]=h++;
}
v=nxt[v][z];
}
}
int opr(const int &v, const int &x){
if(nxt[v][x]!=0){
C[v][x]=nxt[v][x];
f[nxt[v][x]]=C[f[v]][x];
}
else
컴파일 시 표준 에러 (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... |