摘要:
旅行路线 题目描述 A 君准备在 Z 国进行一次旅行。Z 国中有 n 个城市,城市从1到 n 进行编号,其中1号城市为 Z 国首都。Z 国的旅行交通网由 n−1条单向道路构成,并且从任何一个城市出发都可以通过旅行网到达首都。一条旅行交通网中的旅行路线,可以用路线上所经过的城市来描述,如 {v1,v2 阅读全文
摘要:
Calendar Game Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Adam and Eve enter this year’s ACM 阅读全文
摘要:
F. Wizard's Tour time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Wizard's Tour time l 阅读全文
摘要:
There is a tree with nn nodes. For each node, there is an integer value a_iai, (1 \le a_i \le 1,000,000,0001≤ai≤1,000,000,000 for 1 \le i \le n1 阅读全文
摘要:
gems gems gems Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Now there are n gems, each of whic 阅读全文