# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
234282 | VEGAnn | Izlet (COI19_izlet) | C++14 | 828 ms | 36600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define PB push_back
#define a2 array<int,2>
using namespace std;
const int N = 3010;
const int M = 1010;
const int oo = 2e9;
vector<int> g[N];
vector<a2> vc;
int ans[N], a[N][N], n, kol = 0, gl, cnt, col[N], pr[N];
bool is_cen[N], mrk[N];
int get(int x) { return (pr[x] == x ? x : pr[x] = get(pr[x]));}
void add_edge(int x, int y){
vc.PB({x, y});
g[x].PB(y);
g[y].PB(x);
}
void check(int v, int pr, int len){
if (ans[gl] != 0) return;
if (col[ans[v]] == 0)
cnt++;
col[ans[v]]++;
if (cnt == a[gl][v]){
ans[gl] = ans[v];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |