摘要:
Description顺利潜入勺林寺几天后,方丈给了西瓜一个光荣而艰巨的任务——打扫寺庙中的道路。同时给了西瓜一张勺林寺的地图。西瓜这才知道,勺林寺中总共有n座房子,但道路只有n-1条,这n-1条道路连接了寺中的所有房子,即保证在任何两座房子都能沿着道路抵达。好在西瓜人缘不错,他知道每座房子中都有个... 阅读全文
posted @ 2016-07-20 15:09
_Wilbert
阅读(162)
评论(0)
推荐(0)
摘要:
A tree is an undirected connected graph without cycles.Let's consider a rooted undirected tree with n vertices, numbered 1 through n. There are many w... 阅读全文
posted @ 2016-07-20 14:59
_Wilbert
阅读(129)
评论(0)
推荐(0)
摘要:
Vasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following information about each of this n days: w... 阅读全文
posted @ 2016-07-20 14:55
_Wilbert
阅读(285)
评论(0)
推荐(0)
摘要:
You are given a description of a depot. It is a rectangular checkered field of n × m size. Each cell in a field can be empty (".") or it can be occupi... 阅读全文
posted @ 2016-07-20 14:46
_Wilbert
阅读(164)
评论(0)
推荐(0)
摘要:
There will be a launch of a new, powerful and unusual collider very soon, which located along a straight line. n particles will be launched inside it.... 阅读全文
posted @ 2016-07-20 14:41
_Wilbert
阅读(161)
评论(0)
推荐(0)

浙公网安备 33010602011771号