coldheart's blog

一些BFS题集

一些BFS题集 A计划 可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃

ZCMU2188 Frames

ZCMU2188 Frames(多情况模拟讨论) Description Throughout Igor K.’s life he has had many situations worthy of attention. We remember the story with the virus, the story of his mathematical career and of course, his famous programming achievements. However, one does not always adopt new hobbies, one can quit something as well. This time Igor K. got disappointed in

POJ 3122 Pie(二分查找求最大值)

POJ3122 Pie 描述 My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and each of them gets a piece of pie. This should be one piece of one pie, not several small pieces since that looks messy. This piece can

VJudge River Hopscotch(二分查找解最小值最大)

描述 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 excitement takes place on a long, straight river with a rock at the start and another rock at the end, L units away from the start (1 ≤ L ≤ 1,000,000,000). Along the river between the starting and ending rocks, N (0 ≤

ZCMU1713 打麻将(模拟)

ZCMU1713 打麻将(模拟) Description 卡斯丁狗表示真月里那几天,天天在打麻将,他的手气很好,总是摸到三四个财神,于是他就怒赚了一波红包。由于长得帅,他就想把这个

ZCMU1854 zbj的可乐

ZCMU1854 zbj的可乐(模拟) Description zbj最近特别想喝可乐,然而可口可乐有一个万年梗的活动就是….四个瓶盖换一瓶可乐的活动 现在zbj想喝n