- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 Delivery Bears(二分 + 最大流)
Niwel is a little golden bear. As everyone knows, bears live in forests, but Niwel got tired of seeing all the trees so he decided to move to the city.In the city, Niwel took on a job managing bears...
2018-12-24 13:27:17 450
原创 Drainage Ditches(网络最大流)
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thus, Fa...
2018-12-24 13:08:52 200
原创 Stammering Aliens(后缀数组+二分)
Dr. Ellie Arroway has established contact with an extraterrestrial civilization. However, all efforts to decode their messages have failed so far because, as luck would have it, they have stumbled upo...
2018-12-16 21:47:18 437
原创 Long Long Message (后缀数组)
The little cat is majoring in physics in the capital of Byterland. A piece of sad news comes to him these days: his mother is getting ill. Being worried about spending so much on railway tickets (Byte...
2018-12-16 11:26:15 1672
原创 Digital Deletions(博弈)
Digital deletions is a two-player game. The rule of the game is as following. Begin by writing down a string of digits (numbers) that's as long or as short as you like. The digits can be 0, 1, 2, 3, ...
2018-12-14 13:10:10 548 1
原创 Calendar Game(简单博弈)
Adam and Eve enter this year's ACM International Collegiate Programming Contest. Last night, they played the Calendar Game, in celebration of this contest. This game consists of the dates from January...
2018-12-14 13:00:21 525
原创 取石子游戏(威佐夫博弈)
有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。Input输入包含若干行,表示若干种石子的初始情况,其中每一行包含两个非负整数a和b,表示两堆石...
2018-12-14 12:35:39 274
原创 Oulipo(KMP)
The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote from the book:Tout avait Pair normal, mais tout s...
2018-12-14 12:16:47 265
原创 A + B for you again(两个字符串拼接--第一个的后缀与第二个前缀相等时省略一个)
Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asdf” and “sdfg”, the result of the addition between ...
2018-12-13 17:47:02 823
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人