G. Yash And Trees time limit per test:4 seconds memory limit per test:512 megabytes input:standard input output:standard output Yash loves playing with trees and gets especially excited when they have something to do with prime numbers. On his 20th b…
G. Yash And Trees 题目连接: http://www.codeforces.com/contest/633/problem/G Description Yash loves playing with trees and gets especially excited when they have something to do with prime numbers. On his 20th birthday he was granted with a rooted tree of…
题目链接 G. Yash And Trees time limit per test 4 seconds memory limit per test 512 megabytes input standard input output standard output Yash loves playing with trees and gets especially excited when they have something to do with prime numbers. On his 2…