11 2016 档案
摘要:Description There is a company that has N employees(numbered from 1 to N),every employee in the company has a immediate boss (except for the leader of
阅读全文
摘要:Description 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
阅读全文
摘要:Description 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
阅读全文
摘要:Description 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
阅读全文
摘要:Description Gappu has a very busy weekend ahead of him. Because, next weekend is Halloween, and he is planning to attend as many parties as he can. Si
阅读全文
摘要:Description We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a
阅读全文
摘要:Description 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 fou
阅读全文
摘要:Description 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
阅读全文
摘要:Description 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
阅读全文
摘要:Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00
阅读全文
摘要:Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille
阅读全文