# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
983802 | phoenix0423 | 슈퍼트리 잇기 (IOI20_supertrees) | C++17 | 166 ms | 24452 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define pb push_back
#define eb emplace_back
#include "supertrees.h"
struct DSU{
vector<int> par, siz;
int n;
DSU(int _n) : n(_n){
par.resize(n);
siz.resize(n, 1);
iota(par.begin(), par.end(), 0);
}
int root(int x){ return x == par[x] ? x : par[x] = root(par[x]);}
bool same(int x, int y){ return root(x) == root(y);}
void unite(int x, int y){
x = root(x), y = root(y);
if(x == y) return;
if(siz[x] > siz[y]) swap(x, y);
siz[y] += siz[x];
par[x] = y;
}
};
int construct(std::vector<std::vector<int>> p) {
int n = p.size();
vector<vector<int>> ans(n, vector<int>(n));
컴파일 시 표준 에러 (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... |