04 2017 档案

摘要:相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件, 阅读全文
posted @ 2017-04-30 22:47 天之道,利而不害 阅读(258) 评论(0) 推荐(0)
摘要:Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The exciteme 阅读全文
posted @ 2017-04-29 00:12 天之道,利而不害 阅读(192) 评论(0) 推荐(0)
摘要:It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has dec 阅读全文
posted @ 2017-04-26 17:23 天之道,利而不害 阅读(270) 评论(0) 推荐(0)
摘要:Given N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) differences 阅读全文
posted @ 2017-04-25 22:49 天之道,利而不害 阅读(209) 评论(0) 推荐(0)
摘要:Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2017-04-23 21:49 天之道,利而不害 阅读(230) 评论(0) 推荐(0)
摘要:King George has recently decided that he would like to have a new design for the royal graveyard. The graveyard must consist of several sections, each 阅读全文
posted @ 2017-04-23 21:43 天之道,利而不害 阅读(366) 评论(0) 推荐(0)
摘要:Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integ 阅读全文
posted @ 2017-04-23 21:38 天之道,利而不害 阅读(289) 评论(1) 推荐(0)
摘要:As you very well know, this year's funkiest numbers are so called triangular numbers (that is, integers that are representable as , where k is some po 阅读全文
posted @ 2017-04-23 12:05 天之道,利而不害 阅读(561) 评论(0) 推荐(0)
摘要:One day a highly important task was commissioned to Vasya — writing a program in a night. The program consists of n lines of code. Vasya is already ex 阅读全文
posted @ 2017-04-23 12:01 天之道,利而不害 阅读(364) 评论(0) 推荐(0)
摘要:This problem is given in two versions that differ only by constraints. If you can solve this problem in large constraints, then you can just write a s 阅读全文
posted @ 2017-04-22 16:09 天之道,利而不害 阅读(336) 评论(0) 推荐(0)
摘要:Kefa wants to celebrate his first big salary by going to restaurant. However, he needs company. Kefa has n friends, each friend will agree to go to th 阅读全文
posted @ 2017-04-21 23:39 天之道,利而不害 阅读(337) 评论(0) 推荐(0)
摘要:When Valera has got some free time, he goes to the library to read some books. Today he's got t free minutes to read. That's why Valera took n books i 阅读全文
posted @ 2017-04-21 14:46 天之道,利而不害 阅读(506) 评论(0) 推荐(0)
摘要:A TV show called "Guess a number!" is gathering popularity. The whole Berland, the old and the young, are watching the show. The rules are simple. The 阅读全文
posted @ 2017-04-21 14:35 天之道,利而不害 阅读(178) 评论(0) 推荐(0)