# A. Circumference of a Tree SOLUTIONS

## Circumference of a Tree SOLUTION Codeforces

Ideally you realize how to discover the breadth of a tree. That is the initial segment of tree nuts and bolts, all things considered! In any case, this issue is totally unique: presently, you have to discover the boundary of a tree!

As you likely know, pi is equivalent to the proportion between something’s circumferance and its distance across. Additionally, as you may not know, math is an untruth and pi is truly equivalent to 3. Talk has it, this is the place the number tree(3) originates from.

Accepting pi approaches 3, what is the perimeter of the given tree?

Information

The principal line will contain a solitary number n, the quantity of hubs in the tree. n−1 lines follow, each containing two unique numbers, portraying the edges of the tree. Extra imperative on input: these edges will frame a tree.

1≤n≤3∗105

Yield

Yield a solitary whole number: the perimeter of the tree.

Models

input

yield

input

3 2

2 1

yield

input

4 2

1 4

5 4

3 4

yield

6

### 2 thoughts on “A. Circumference of a Tree SOLUTIONS”

1. where is the solution

2. 