UVA10303 How Many Trees?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1244 [PDF](https://uva.onlinejudge.org/external/103/p10303.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10303/e88323590e10a8d7888903ac567ef484812ee062.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10303/9dfb9aaee39bd6de5284a79db00101703fc3f8ea.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10303/bd262492d8b031cd548a89fa25dfd2e53a9956ea.png)