# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
395457 | MrRobot_28 | Vlak (COCI20_vlak) | C++17 | 25 ms | 20836 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define sz(a) (int)a.size()
#define ll long long
#define ld long double
const int N = 2e5 + 100;
int dp[N][2];
bool go_to[N][2];
int g[N][26];
int it = 1;
string s;
void go_to1(int st, int i)
{
go_to[st][0] = 1;
if(i == sz(s))
{
return;
}
if(g[st][s[i] - 'a'] == -1)
{
g[st][s[i] - 'a'] = it;
it++;
}
go_to1(g[st][s[i] - 'a'], i + 1);
}
void go_to2(int st, int i)
{
go_to[st][1] = 1;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |