上一页 1 ··· 15 16 17 18 19
摘要: George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina 阅读全文
posted @ 2018-08-18 21:58 千摆渡Qbd 阅读(122) 评论(0) 推荐(0)
摘要: 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若 阅读全文
posted @ 2018-08-18 21:40 千摆渡Qbd 阅读(176) 评论(0) 推荐(0)
摘要: An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unex 阅读全文
posted @ 2018-08-18 21:29 千摆渡Qbd 阅读(165) 评论(0) 推荐(0)
摘要: 题目描述: A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangem 阅读全文
posted @ 2018-08-18 21:24 千摆渡Qbd 阅读(343) 评论(0) 推荐(0)
摘要: 题目描述: 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 阅读全文
posted @ 2018-08-18 21:13 千摆渡Qbd 阅读(138) 评论(0) 推荐(0)
摘要: 题目描述: Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) pla 阅读全文
posted @ 2018-08-18 21:04 千摆渡Qbd 阅读(250) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19