# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
436531 | dacin21 | 분수 공원 (IOI21_parks) | C++17 | 1136 ms | 94092 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
const int U = 1.01e5;
struct Segment{
int x, y;
bool vert;
};
struct Range{
int a, b;
};
struct Dsu{
Dsu(int n_) : p(n_, -1){}
int f(int x){
return p[x] < 0 ? x : p[x] = f(p[x]);
}
bool u(int a, int b){
a = f(a);
b = f(b);
if(a == b) return false;
p[b] = a;
return true;
}
vector<int> p;
};
// 2-sat in linear time via backtracking.
# | 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... |