# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
45120 | model_code | Shell (info1cup18_shell) | C++17 | 439 ms | 35248 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cassert>
#define MOD 1000000007LL
using namespace std;
int n, m, p;
vector <int> g[1000010];
int dp[1000010], v[1000010];
long long nr[1000010];
void dfs (int nod)
{
if (nod == n)
{
dp[nod] = 1;
nr[nod] = 1LL;
if (nod == v[ p - dp[nod] + 1 ]) ++dp[nod];
return;
}
for (auto &it : g[nod])
{
if (dp[it] == 0) dfs (it);
if (dp[it] > dp[nod]) dp[nod] = dp[it], nr[nod] = nr[it];
컴파일 시 표준 에러 (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... |