01 2016 档案

摘要:算法:BFS(简单) A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stac... 阅读全文
posted @ 2016-01-10 16:49 (慎独) 阅读(1095) 评论(0) 推荐(0)
摘要:算法:广搜 思路:六种情况 s-m; s-n; n-m; n-s; m-s; m-n; 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的... 阅读全文
posted @ 2016-01-04 17:11 (慎独) 阅读(217) 评论(0) 推荐(0)
摘要:算法:BFS 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 escape pla... 阅读全文
posted @ 2016-01-03 18:12 (慎独) 阅读(193) 评论(0) 推荐(0)
摘要:算法:广搜(BFS); 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 ma... 阅读全文
posted @ 2016-01-03 16:41 (慎独) 阅读(249) 评论(0) 推荐(0)
摘要:算法:BFS 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) ... 阅读全文
posted @ 2016-01-03 13:25 (慎独) 阅读(160) 评论(0) 推荐(0)
摘要:算法:BFS 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-d... 阅读全文
posted @ 2016-01-03 12:24 (慎独) 阅读(194) 评论(0) 推荐(0)
摘要:算法:深搜(水题); 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... 阅读全文
posted @ 2016-01-03 11:02 (慎独) 阅读(504) 评论(0) 推荐(0)
摘要:算法:广搜; Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people t... 阅读全文
posted @ 2016-01-02 20:40 (慎独) 阅读(199) 评论(0) 推荐(0)
摘要:算法:简单搜索 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用... 阅读全文
posted @ 2016-01-01 14:04 (慎独) 阅读(178) 评论(0) 推荐(0)