# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
261140 | georgerapeanu | Parachute rings (IOI12_rings) | C++11 | 4059 ms | 75096 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma once
#include <vector>
#include <algorithm>
#include <cstdio>
#include <queue>
using namespace std;
const int NMAX = 1e6;
int n;
vector<int> graph[NMAX + 5];
int dfs(int nod,int tata,vector<int> &viz){
viz[nod] = 1;
int found = 0;
for(auto it:graph[nod]){
if(viz[it] == 2){
found = 1;
}
if(it == tata){
continue;
}
if(viz[it] == 0){
if(dfs(it,nod,viz) == 0){
return 0;
Compilation message (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... |