摘要: DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating ... 阅读全文
posted @ 2015-08-27 01:34 UniqueColor 阅读(242) 评论(0) 推荐(0)
摘要: DescriptionFarmer John is assigning some of his N (1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define N 26000 8 struct No... 阅读全文
posted @ 2015-08-27 00:00 UniqueColor 阅读(233) 评论(0) 推荐(0)
摘要: Problem DescriptionToday is CRB's birthday. His mom decided to buy many presents for her lovely son. She went to the nearest shop withMWon(currency un... 阅读全文
posted @ 2015-08-21 00:54 UniqueColor 阅读(415) 评论(0) 推荐(0)
摘要: Problem Description《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Cheng'en... 阅读全文
posted @ 2015-08-20 04:47 UniqueColor 阅读(388) 评论(0) 推荐(0)
摘要: Problem DescriptionThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a1.a2,a3,a4,a5,a6to be nu... 阅读全文
posted @ 2015-08-20 02:29 UniqueColor 阅读(233) 评论(0) 推荐(0)
摘要: Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very ... 阅读全文
posted @ 2015-08-19 23:04 UniqueColor 阅读(197) 评论(0) 推荐(0)
摘要: Problem DescriptionFollowing is the recursive definition of Fibonacci sequence:Fi=⎧⎩⎨01Fi−1+Fi−2i = 0i = 1i > 1Now we need to check whether a number c... 阅读全文
posted @ 2015-08-19 22:36 UniqueColor 阅读(258) 评论(0) 推荐(0)
摘要: Problem DescriptionThere are x cards on the desk, they are numbered from 1 to x. The score of the card which is numbered i(1 2 #include 3 #include 4 #... 阅读全文
posted @ 2015-08-19 22:09 UniqueColor 阅读(204) 评论(0) 推荐(0)
摘要: Problem DescriptionJohn has n points on the X axis, and their coordinates are (x[i],0),(i=0,1,2,…,n−1). He wants to know how many pairs that |x[b]−x[a... 阅读全文
posted @ 2015-08-19 18:11 UniqueColor 阅读(761) 评论(0) 推荐(0)
摘要: Break Standard WeightTime Limit: 2 Seconds Memory Limit: 65536 KBThe balance was the first mass measuring instrument invented. In its traditional f... 阅读全文
posted @ 2015-08-19 03:32 UniqueColor 阅读(317) 评论(0) 推荐(0)