# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
230507 | zoooma13 | Easter Eggs (info1cup17_eastereggs) | C++14 | 36 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
#define MAX_N 513
vector <int> adj[MAX_N] ,active ,Set;
int SZ;
void dfs(int u ,int p=-1){
if(!SZ)
return;
Set.push_back(u);
if(find(active.begin() ,active.end() ,u) != active.end())
SZ--;
for(int&v : adj[u]) if(v != p)
dfs(v ,u);
}
vector <int> findSet(int sz){
SZ = sz;
Set.clear();
dfs(1);
return Set;
}
int findEgg (int N, vector < pair < int, int > > bridges){
active.clear();
for(int i=0; i<=N; i++)
adj[i].clear();
for(auto&e : bridges)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |