# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
858812 | iskhakkutbilim | Joker (BOI20_joker) | C++17 | 2092 ms | 24144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define all(a) a.begin(), a.end()
const int N = 2e5;
vector<pair<int, int> > g[N+1];
int n, m, q, timer = 1;
int used[N+1], lens[N+1];
int Left, Right, ok;
vector< pair<int, int> > query;
void dfs(int v, int par){
if(ok) return;
used[v] = timer;
for(auto [to, idx] : g[v]){
if(used[to] == timer && (idx < Left or idx > Right) && to != par){
int len = lens[v] - lens[to] + 1;
if(len % 2 == 1){
ok = 1;
return;
}
}else if(used[to] < timer && (idx < Left or idx > Right)){
lens[to] = lens[v] + 1;
dfs(to, v);
}
}
used[v] = timer+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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |