09 2016 档案
摘要:Description Yaaaay, Haven't you heard the news? Bakaloria results are out! And Reem had very good grades. Finally she can go to IT college and pursue
阅读全文
摘要:Description Tamer is traveling with his brother on a long highway. He sees a traffic light at a distance. He calculated that it will take him x second
阅读全文
摘要:Description Vasya takes part in the orienteering competition. There are n checkpoints located along the line at coordinates x1, x2, ..., xn. Vasya sta
阅读全文
摘要:Description Kolya is going to make fresh orange juice. He has n oranges of sizes a1, a2, ..., an. Kolya will put them in the juicer in the fixed order
阅读全文
摘要:描述 Institute of Computational Linguistics (ICL), Peking University is an interdisciplinary institute of science and liberal arts, it focuses primarily
阅读全文
摘要:描述 The history of Peking University Library is as long as the history of Peking University. It was build in 1898. At the end of year 2015, it had abou
阅读全文
摘要:Description Anatoly lives in the university dorm as many other students do. As you know, cockroaches are also living there together with students. Coc
阅读全文
摘要:Description Every summer Vitya comes to visit his grandmother in the countryside. This summer, he got a huge wart. Every grandma knows that one should
阅读全文
摘要:Description ZS the Coder is playing a game. There is a number displayed on the screen and there are two buttons, ' + ' (plus) and '' (square root). In
阅读全文
摘要:Description ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists a substring (contiguous segment of letters) of it
阅读全文
摘要:Description ZS the Coder is coding on a crazy computer. If you don't type in a word for a c consecutive seconds, everything you typed disappear! More
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5889 解法:http://blog.csdn.net/u013532224/article/details/46992973 然后改改模版
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5883 解法:先判断是不是欧拉路,然后枚举
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5882 解法:一个点必须出度和入度相同就满足题意,所以加上本身就是判断奇偶性
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5879 解法:我们知道到某个极限之后结果相同,所以找到那个极限,其他保存之后输出就好了
阅读全文
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=5878 解法:先保存,再二分查询~具体http://blog.csdn.net/coder_xia/article/details/6707600
阅读全文
摘要:Description Memory is now interested in the de-evolution of objects, specifically triangles. He starts with an equilateral triangle of side length x,
阅读全文
摘要:Description Memory is performing a walk on the two-dimensional plane, starting at the origin. He is given a string s with his directions for motion: A
阅读全文
摘要:Description There are n integers b1, b2, ..., bn written in a row. For all i from 1 to n, values ai are defined by the crows performing the following
阅读全文
摘要:In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum. For example, fo
阅读全文
摘要:Description Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and d
阅读全文
摘要:Description Fedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression: (1n + 2n + 3n + 4n) mod 5 for given value o
阅读全文
摘要:Description One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better
阅读全文