diff --git "a/BaekJoon/10870_\355\224\274\353\263\264\353\202\230\354\271\230\354\210\2305.cpp" "b/BaekJoon/10870_\355\224\274\353\263\264\353\202\230\354\271\230\354\210\2305.cpp" new file mode 100644 index 0000000..e51cf44 --- /dev/null +++ "b/BaekJoon/10870_\355\224\274\353\263\264\353\202\230\354\271\230\354\210\2305.cpp" @@ -0,0 +1,13 @@ +#include +using namespace std; + +int fibo(int n) { + if(n==0||n==1) return n; + return fibo(n-1) + fibo(n-2); +} +int main(){ + int n; + cin>>n; + cout< +#include +using namespace std; + +vector> adj; +vector visited; +int count = 0; + +void dfs(int here) { + visited[here] = true; + for(int i=0; i>computer; + cin>>pair; + adj.resize(computer); + visited.resize(computer); + for(int i=0;i>start>>end; + --start; --end; + adj[start].push_back(end); + adj[end].push_back(start); + } + dfs(0); + cout<