| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 39402 | adamczh1 | Parachute rings (IOI12_rings) | C++14 | 1209 ms | 122344 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int N;
int deg[1000000];
void Init(int N_) {
N = N_;
}
set<int> adj[1000000];
set<int> s;
void Link(int A, int B) {
adj[A].insert(B), adj[B].insert(A);
deg[A]++, deg[B]++;
if(deg[A]>=2) s.insert(A);
if(deg[B]>=2) s.insert(B);
}
int CountCritical() {
int res=0;
for(int i=0;i<N;i++){
int ok=1;
for(int v:s){
if(i!=v && adj[i].find(v)==adj[i].end()){
ok=0;
break;
}
}
res+=ok;
}
return res;
}
| # | 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... | ||||
