水题
岩霏
这个作者很懒,什么都没留下…
展开
-
文章标题
1203: 杨八方的语文问题 [字符串] 时间限制: 1 Sec 内存限制: 128 MB 题目描述 转眼间一学期就将要过去了,杨八方也在大学里经历了许多事情,最难忘的自然是学校里的各色课程。杨八方很喜欢中国的古典文化,所以当她知道大学有语文课的时候是很开心的。更幸运的是,杨八方的语文老师是位酷酷的男性。第一次上课的时候语文老师就大谈中国文学,从夏商周一直侃到了现代。语文老师表示最让他受不了的原创 2017-07-21 08:42:40 · 162 阅读 · 0 评论 -
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 - 1 - 2 + 3 - 4 =原创 2017-07-30 09:14:52 · 266 阅读 · 0 评论 -
Patrick and Shopping
Patrick and Shopping 今天 Patrick 等待着他的朋友 Spongebob 来他家玩。为了迎接 Spongebob,Patrick 需要去他家附近的两家商店 买一些吃的。他家离第一家商店有d1米远,离第二家商店有d2米远。还有,两家商店之间的距离是d3,帮Patrick计算去两家商店然后回家的最短距离。 Patrick 永远从原创 2017-07-30 09:23:16 · 167 阅读 · 0 评论 -
Birthday Paradox
Birthday Paradox Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is原创 2017-07-31 10:42:18 · 408 阅读 · 0 评论 -
暑期训练
Bear and Three Balls Limak is a little polar bear. He has n balls, the i-th ball has size ti. Limak wants to give one ball to each of his three friends. Giving gifts isn't easy — ther原创 2017-07-23 15:49:15 · 201 阅读 · 0 评论