摘要: Description T is a complete binary tree consisting of n vertices. It means that exactly one vertex is a root, and each vertex is either a leaf (and do 阅读全文
posted @ 2017-03-29 21:33 樱花落舞 阅读(319) 评论(0) 推荐(0)
摘要: Description n children are standing in a circle and playing the counting-out game. Children are numbered clockwise from 1 to n. In the beginning, the 阅读全文
posted @ 2017-03-29 21:25 樱花落舞 阅读(392) 评论(0) 推荐(0)
摘要: Description There are n cities situated along the main road of Berland. Cities are represented by their coordinates — integer numbers a1, a2, ..., an. 阅读全文
posted @ 2017-03-29 20:42 樱花落舞 阅读(278) 评论(0) 推荐(0)