摘要:
Problem Description It is well known that small groups are not conducive of the development of a team. Therefore, there shouldn’t be any small groups 阅读全文
摘要:
106. The equation time limit per test: 0.25 sec.memory limit per test: 4096 KB There is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must 阅读全文
摘要:
Description Input 第一行包含两个整数 n, K(1 ≤ K ≤ 2)。接下来 n – 1行,每行两个整数 a, b, 表示村庄a与b之间有一条道路(1 ≤ a, b ≤ n)。 Output 输出一个整数,表示新建了K 条道路后能达到的最小巡逻距离。 Sample Input 8 阅读全文