2018年8月17日

Find a way HDU - 2612

摘要: Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a 阅读全文

posted @ 2018-08-17 11:06 Cute_Abacus 阅读(117) 评论(0) 推荐(0) 编辑

非常可乐 HDU - 1495

摘要: 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 ( 阅读全文

posted @ 2018-08-17 11:05 Cute_Abacus 阅读(152) 评论(0) 推荐(0) 编辑

Oil Deposits HDU - 1241

摘要: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of 阅读全文

posted @ 2018-08-17 11:04 Cute_Abacus 阅读(104) 评论(0) 推荐(0) 编辑

迷宫问题 POJ - 3984

摘要: 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要 阅读全文

posted @ 2018-08-17 11:03 Cute_Abacus 阅读(183) 评论(0) 推荐(0) 编辑

Fire!

摘要: Fire! UVA - 11624 Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire e 阅读全文

posted @ 2018-08-17 11:01 Cute_Abacus 阅读(160) 评论(0) 推荐(0) 编辑

Fire Game FZU - 2150

摘要: 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 con 阅读全文

posted @ 2018-08-17 11:00 Cute_Abacus 阅读(260) 评论(0) 推荐(0) 编辑

Pots POJ - 3414

摘要: You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: Write a program to find the short 阅读全文

posted @ 2018-08-17 10:57 Cute_Abacus 阅读(416) 评论(0) 推荐(0) 编辑

Prime Path POJ - 3126

摘要: 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 阅读全文

posted @ 2018-08-17 10:56 Cute_Abacus 阅读(354) 评论(0) 推荐(0) 编辑

Find The Multiple POJ - 1426

摘要: 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 m 阅读全文

posted @ 2018-08-17 10:55 Cute_Abacus 阅读(88) 评论(0) 推荐(0) 编辑

Fliptile POJ - 3279

摘要: 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 the 阅读全文

posted @ 2018-08-17 10:54 Cute_Abacus 阅读(105) 评论(0) 推荐(0) 编辑

Catch That Cow POJ - 3278

摘要: 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,000) on a numb 阅读全文

posted @ 2018-08-17 10:53 Cute_Abacus 阅读(168) 评论(0) 推荐(0) 编辑

Dungeon Master POJ - 2251

摘要: 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 filled with rock. 阅读全文

posted @ 2018-08-17 10:51 Cute_Abacus 阅读(138) 评论(0) 推荐(0) 编辑

棋盘问题 POJ - 1321

摘要: 题目 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表 阅读全文

posted @ 2018-08-17 10:50 Cute_Abacus 阅读(89) 评论(0) 推荐(0) 编辑

导航