
深搜
文章平均质量分 86
追逐星辰的光
脚踏实地,虚心前行
展开
-
CodeForces - 198B Jumping on Walls
Vasya plays a computer game with ninjas. At this stage Vasya's ninja should get out of a deep canyon.The canyon consists of two vertical parallel walls, their height is n meters. Let's imagine that原创 2017-12-25 13:27:47 · 707 阅读 · 0 评论 -
POJ 3187 Backward Digit Sums
FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a new list with one fewer number. They r原创 2018-01-04 20:26:53 · 206 阅读 · 0 评论 -
HDU 1342 Lotto
In a Lotto I have ever played, one has to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subset S c原创 2018-01-04 21:19:35 · 414 阅读 · 0 评论 -
CodeForces - 242C King's Path
The black king is standing on a chess field consisting of 109 rows and 109 columns. We will consider the rows of the field numbered with integers from 1 to 109 from top to bottom. The columns are si原创 2017-12-26 11:03:50 · 279 阅读 · 0 评论 -
CodeForces 208B Solitaire
A boy named Vasya wants to play an old Russian solitaire called "Accordion". In this solitaire, the player must observe the following rules:A deck of n cards is carefully shuffled, then all n card原创 2018-01-05 18:03:19 · 348 阅读 · 0 评论 -
POJ - 2386 Lake Counting
Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water (原创 2018-01-07 16:03:06 · 253 阅读 · 0 评论