# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
562478 | CaroLinda | Parachute rings (IOI12_rings) | C++14 | 4062 ms | 80264 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
SUBTASK 1 JUST TO TEST HIPHOTESES
*/
#include <bits/stdc++.h>
#define all(x) x.begin(),x.end()
#define sz(x) (int)(x.size())
const int MAXN = 1e6+10 ;
using namespace std ;
int N ;
vector<int> adj[MAXN] ;
int disappear(int x){
//if x != -1, then I already removed someone and I can not have cycles/degree 3
//if x == -1, I can have a SINGLE cycle and the answer will be the size of cycle
//in every case, nobody can have degree three
vector<int> dsu(N) ; iota(all(dsu) , 0 ) ;
vector<int> qtd(N,1) ;
vector<int> deg(N,0) ;
int qtdCycle = 0 , sz_cycle = N ;
function<int(int)> find = [&](int a){
return dsu[a] = (a == dsu[a]) ? a : find(dsu[a]) ;
# | 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... |