Drazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, .First, they choose a decimal number a consisting of n digits that co...
分类:
其他好文 时间:
2015-02-18 13:02:15
阅读次数:
103
B. Drazil and TilesDrazil created a following problem about putting 1?×?2 tiles into an n?×?m grid:"There is a grid with some cells that are empty and...
分类:
其他好文 时间:
2015-02-18 12:59:28
阅读次数:
152
B. Drazil and His Happy Friends
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Drazil has many friends. So...
分类:
移动开发 时间:
2015-02-18 11:56:33
阅读次数:
129
Problem Description
The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it, and all packed into a 4 by 4 frame with one tile m...
分类:
编程语言 时间:
2015-02-15 09:29:04
阅读次数:
1023
Problem Description
There is a large room in the Pyramid called Room-of-No-Return. Its floor is covered by rectangular tiles of equal size. The name of the room was chosen because of the very high ...
分类:
其他好文 时间:
2015-02-06 09:36:59
阅读次数:
185
Red and Black
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 23904
Accepted: 12927
Description
There is a rectangular room, covered with square tiles....
分类:
其他好文 时间:
2015-02-02 18:07:53
阅读次数:
111
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
分类:
其他好文 时间:
2015-01-27 21:43:01
阅读次数:
170
uva 11210 Chinese Mahjong
Mahjong () is a game of Chinese origin usually played by four persons with tiles resembling dominoes and bearing various designs, which are drawn and discarded until o...
分类:
其他好文 时间:
2015-01-27 09:30:43
阅读次数:
273
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c...
分类:
其他好文 时间:
2015-01-20 13:31:48
阅读次数:
148
题意: NxN的地图,上面有A颜色的瓷砖以及一些空格点,要用B,C,D颜色去填充这些空格,只能十字形的填充,还要保证共角或共边的格子不能是相同颜色,求一种字典序最小的填充方法,如果不能,输出"Not Possible"。解法: 从上往下扫,如果有空格,那么一定是以它下面那个格子为中心填十字瓷砖才能填...
分类:
其他好文 时间:
2015-01-19 01:39:50
阅读次数:
216