上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: 1.链接地址:http://poj.org/problem?id=1631http://bailian.openjudge.cn/practice/16312.题目:Bridging signalsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 9882Accepted: 5409Description'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. Once more the r 阅读全文
posted @ 2014-02-21 23:29 mobileliker 阅读(209) 评论(0) 推荐(0)
摘要: 1 freopen("C://input.txt","r",stdin); 阅读全文
posted @ 2014-02-20 22:09 mobileliker 阅读(134) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/1517http://poj.org/problem?id=15172.题目:总时间限制:1000ms内存限制:65536kB描述A simple mathematical formula for e is e=Σ0<=i<=n1/i!where n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small values of n.输 阅读全文
posted @ 2014-02-20 22:06 mobileliker 阅读(323) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/2790/2.题目:总时间限制:3000ms内存限制:65536kB描述一天Extense在森林里探险的时候不小心走入了一个迷宫,迷宫可以看成是由n * n的格点组成,每个格点只有2种状态,.和#,前者表示可以通行后者表示不能通行。同时当Extense处在某个格点时,他只能移动到东南西北(或者说上 下左右)四个方向之一的相邻格点上,Extense想要从点A走到点B,问在不走出迷宫的情况下能不能办到。如果起点或者终点有一个不能通行(为#),则 看成无法办到。输入第1行是测试数据的组数k,后面跟着k组输入。每组 阅读全文
posted @ 2014-02-20 21:58 mobileliker 阅读(739) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/2749/2.题目:总时间限制:1000ms内存限制:65536kB描述给出一个正整数a,要求分解成若干个正整数的乘积,即a = a1 * a2 * a3 * ... * an,并且1 2 #include 3 4 using namespace std; 5 6 int f(int s,int a) 7 { 8 int i; 9 int res = 1;10 for(i = s; i * i > n;23 24 int a;25 while(n--)26 ... 阅读全文
posted @ 2014-02-20 21:55 mobileliker 阅读(683) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/2815/http://poj.org/problem?id=11642.题目:总时间限制:1000ms内存限制:65536kB描述 1 2 3 4 5 6 7 ############################# 1 # | # | # | | # #####---#####---#---#####---# 2 # # | # # # # # #---#####---#####---#####--... 阅读全文
posted @ 2014-02-20 21:50 mobileliker 阅读(641) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/2817/http://poj.org/problem?id=10112.题目:总时间限制:1000ms内存限制:65536kB描述乔治拿来一组等长的木棒,将它们随机地裁断,使得每一节木棍的长度都不超过50个长度单位。然后他又想把这些木棍恢复到为裁截前的状态,但忘 记了初始时有多少木棒以及木棒的初始长度。请你设计一个程序,帮助乔治计算木棒的可能最小长度。每一节木棍的长度都用大于零的整数表示。输入输入包含多组数据,每组数据包括两行。第一行是一个不超过64的整数,表示砍断之后共有多少节木棍。第二行是截断以后,所 阅读全文
posted @ 2014-02-20 21:37 mobileliker 阅读(534) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/27542.题目:总时间限制:1000ms内存限制:65536kB描述会下国际象棋的人都很清楚:皇后可以在横、竖、斜线上不限步数地吃掉其他棋子。如何将8个皇后放在棋盘上(有8 * 8个方格),使它们谁也不能被吃掉!这就是著名的八皇后问题。 对于某个满足要求的8皇后的摆放方法,定义一个皇后串a与之对应,即a=b1b2...b8,其中bi为相应摆法中第i行皇后所处的列数。已经知道8皇后问题一共有92组解(即92个不同的皇后串)。给出一个数b,要求输出第b个串。串的比较是这样的:皇后串x置于皇后串y之前,当且仅当 阅读全文
posted @ 2014-02-19 23:49 mobileliker 阅读(283) 评论(0) 推荐(0)
摘要: 1.链接地址:http://poj.org/problem?id=15032.题目:Integer InquiryTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 28115Accepted: 10925DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored takin 阅读全文
posted @ 2014-02-19 23:47 mobileliker 阅读(175) 评论(0) 推荐(0)
摘要: 1.链接地址:http://bailian.openjudge.cn/practice/1979http://poj.org/problem?id=19792.题目:总时间限制:1000ms内存限制:65536kB描述There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. Bu 阅读全文
posted @ 2014-02-18 22:24 mobileliker 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页