- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 Frogger
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists' sun...
2018-07-28 11:23:37 1570
原创 Heavy Transportation
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his cus...
2018-07-28 11:15:39 933 1
原创 Til the Cows Come Home
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so she wants to get b...
2018-07-27 17:23:16 93
原创 Shuffle'm Up
A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack containing C chips. Ea...
2018-07-27 15:34:05 109
原创 Fire!
题目链接:https://cn.vjudge.net/contest/219479#problem/J题目大意:一个人要从火场里出来,不知道多少火的起始点,或可以蔓延,人不能走墙,不能走火,问人是否能出来,最少多久解题思路:bfs,多个同时bfs,用两个数组分别标记已走过路程,人和火分别讨论,因为人不能走人已经走过的,也不能走火已经走过的,但是火可以走人已经走过的,但火不能走火走过的。...
2018-07-27 09:36:53 1060
原创 Pots
You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) empty the po...
2018-07-26 21:32:58 751
原创 Prime Path
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It is a matter of se...
2018-07-26 19:12:02 105
原创 Vanya and Scales
Vanya has a scales for weighing loads and weights of masses w0, w1, w2, ..., w100 grams where w is some integer not less than 2 (exactly one weight of each nominal value). Vanya wonders whether he can...
2018-07-26 14:34:22 278
原创 Find The Multiple
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there...
2018-07-25 20:01:27 94
原创 Fire Game
Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and then they start...
2018-07-24 14:53:10 952
原创 Fliptile
Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M× N grid (1 ≤ M ≤ 15; 1 ≤ N ≤ 15)...
2018-07-23 10:37:02 253
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人