摘要: Sudoku POJ - 2676 Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown ... 阅读全文
posted @ 2018-04-16 19:29 focus5679 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Square POJ - 2362 Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first lin... 阅读全文
posted @ 2018-04-15 14:21 focus5679 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 逃离迷宫 HDU - 1728 给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中... 阅读全文
posted @ 2018-04-15 11:46 focus5679 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 棋盘问题 POJ - 1321 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每... 阅读全文
posted @ 2018-04-13 16:58 focus5679 阅读(84) 评论(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 represent... 阅读全文
posted @ 2018-04-12 21:08 focus5679 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Curling 2.0 POJ - 3009On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat dif... 阅读全文
posted @ 2018-04-12 17:04 focus5679 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 放苹果 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 #include #include #include #include... 阅读全文
posted @ 2018-04-11 22:32 focus5679 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 蜘蛛牌 蜘蛛牌是windows xp操作系统自带的一款纸牌游戏,游戏规则是这样的:只能将牌拖到比她大一的牌上面(A最小,K最大),如果拖动的牌上有按顺序排好的牌时,那么这些牌也跟着一起移动,游戏的目的是将所有的牌按同一花色从小到大排好,为了简单起见,我们的游戏只有同一... 阅读全文
posted @ 2018-04-11 21:12 focus5679 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Meteor Shower POJ - 3669 Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash int... 阅读全文
posted @ 2018-04-10 17:03 focus5679 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Fence Repair POJ - 3253 Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds th... 阅读全文
posted @ 2018-04-09 18:35 focus5679 阅读(125) 评论(0) 推荐(0) 编辑