![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单数学
Hold_My_Own
When the dust settles, and it will, we'll see.
展开
-
(CodeForces - 598A)Tricky Sum
(CodeForces - 598A)Tricky SumIn 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-09-07 07:55:35 · 364 阅读 · 0 评论 -
(CSU - 1970)LXX数
(CSU - 1970)LXX数 又是一年集训时,刚出家里赶来的LXX很是郁闷。因为CS市的天气实在是难以忍受了,加之搬寝室到CS大学“老”校区。一天晚上CS大学“老”校区的寝室又停电了,LXX和室友实在是难以呆下去了。于是商量一起去网吧吹空调,但是谁请客是个问题。LXX的室友小Z便甩出一个问题给LXX,只要LXX在1S内计算出来便请客。问题如下: 我有n个数,a[1]~a[n],初始值均为0,现在我要执行n次操作(原创 2017-09-10 11:08:31 · 221 阅读 · 0 评论 -
(CodeForces 628B)New Skateboard
(CodeForces 628B)New Skateboard Max wants to buy a new skateboard. He has calculated the amount of money that is needed to buy a new skateboard. He left a calculator on the floor and went to ask some money from原创 2017-11-01 21:25:19 · 454 阅读 · 0 评论