
hpu2016基础训练
sping-
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
B - Tricky Sum
点击打开链接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, for n = 4 the sum is equal to原创 2017-07-29 09:45:02 · 218 阅读 · 0 评论 -
C - Patrick and Shopping
点击打开链接今天 Patrick 等待着他的朋友 Spongebob 来他家玩。为了迎接 Spongebob,Patrick 需要去他家附近的两家商店 买一些吃的。他家离第一家商店有d1米远,离第二家商店有d2米远。还有,两家商店之间的距离是d3,帮Patrick计算去两家商店然后回家的最短距离。Patrick 永远从他家出发,他不介意重复经过同一个地点或者同一条路,原创 2017-07-29 09:50:39 · 285 阅读 · 0 评论 -
F - Pasha and Stick
点击打开链接Pasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and原创 2017-07-29 09:54:29 · 292 阅读 · 0 评论 -
G - New Year and Days
点击打开链接Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.Limak is a little polar bear. He enjoyed this year a lot.原创 2017-07-29 10:01:36 · 233 阅读 · 0 评论 -
I - Restaurant
点击打开链接A restaurant received n orders for the rental. Each rental order reserve the restaurant for a continuous period of time, the i-th order is characterized by two time values — the star原创 2017-07-29 10:06:44 · 171 阅读 · 0 评论 -
Uncowed Forces
点击打开链接Kevin Sun has just finished competing in Codeforces Round #334! The round was 120 minutes long and featured five problems with maximum point values of 500, 1000, 1500, 2000, and 25原创 2017-07-29 10:54:22 · 218 阅读 · 0 评论 -
H - Bulbs
点击打开链接Vasya wants to turn on Christmas lights consisting of m bulbs. Initially, all bulbs are turned off. There are n buttons, each of them is connected to some set of bulbs. Vasya can pre原创 2017-07-29 10:03:16 · 304 阅读 · 0 评论 -
Divisibility
点击打开链接Find the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ x ≤ b and x is divisible by k.InputTh转载 2017-07-29 11:54:45 · 203 阅读 · 0 评论