# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
704703 | amin | Regions (IOI09_regions) | C++14 | 5221 ms | 55480 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
vector<int>v[200001],p[200001];
vector<pair<int,int> >ma[30000];
vector<pair<int,int> >ra[30000];
int re[200001];
vector<int>df;
void dfs(int in)
{
int l=df.size();
df.push_back(in);
p[re[in]].push_back(df.size()-1);
for(auto i:v[in])
{
dfs(i);
}
int r=df.size();
df.push_back(in);
ma[re[in]].push_back({l,1});
ma[re[in]].push_back({r+1,-1});
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |