---
title: "Discussion on \"[boj] 11725 트리의 부모 찾기\" | Hashnode"
description: "Discussion on \"[boj] 11725 트리의 부모 찾기\". https://www.acmicpc.net/problem/11725\n문제\n루트 없는 트리가 주어진다. 이때, 트리의 루트를 1이라고 정했을 때, 각 노드의 부모를 구하는 프로그램을 작성하시오.\n입력\n첫째 줄에 노드의 개수 N (2 ≤ N ≤ 100,000)이 주어진다. 둘째 줄부터 N-1개의 줄에 트리 상에서 연결된 두 정점이 주어진다.\n출력\n첫째 줄부터"
url: "https://hashnode.com/posts/boj-11725/65a61aed5505bf3464b3845e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[boj\] 11725 트리의 부모 찾기](https://blog.aqudi.me/boj-11725?utm_source=hashnode&utm_medium=feed)

https://www.acmicpc.net/problem/11725 문제 루트 없는 트리가 주어진다. 이때, 트리의 루트를 1이라고 정했을 때, 각 노드의 부모를 구하는 프로그램을 작성하시오. 입력 첫째 줄에 노드의 개수 N (2 ≤ N ≤ 100,000)이 주어진다. 둘째 줄부터 N-1개의 줄에 트리 상에서 연결된 두 정점이 주어진다. 출력 첫째 줄부터

Oct 21, 2023 · 2 min read · blog.aqudi.me  
Updated 9h ago  
Read the article

## Written by

[Taejung Heo](https://hashnode.com/@CloudWhale)

@CloudWhale · Seoul, South Korea

  
[View profile](https://hashnode.com/@CloudWhale)

Software Developer at place where I feel comportable

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
