上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 34 下一页
摘要: 题目链接 Problem Description IP lookup is one of the key functions of routers for packets forwarding and classifying. Generally, IP lookup can be simplifi 阅读全文
posted @ 2017-06-03 14:21 茶飘香~ 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the 阅读全文
posted @ 2017-05-23 19:58 茶飘香~ 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000 阅读全文
posted @ 2017-05-23 19:55 茶飘香~ 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Description The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can 阅读全文
posted @ 2017-05-06 17:49 茶飘香~ 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小明同学要参加一场考试,考试一共有n道题目,小明必须作对至少60%的题目才能通过考试。考试结束后,小明估算出每题作对的概率,p1,p2,...,pn,你能帮他算出他通过考试的概率吗? 输入 输入第一行一个数n(1<=n<=100),表示题目的个数,第二行n个整数,p1,p2,...,pn, 阅读全文
posted @ 2017-04-23 19:06 茶飘香~ 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 题目链接 一个M*N的矩阵,找到此矩阵的一个子矩阵,并且这个子矩阵的元素的和是最大的,输出这个最大的值。 例如:3*3的矩阵: -1 3 -1 2 -1 3 -3 1 2 和最大的子矩阵是: 3 -1 -1 3 1 2 一个M*N的矩阵,找到此矩阵的一个子矩阵,并且这个子矩阵的元素的和是最大的,输出 阅读全文
posted @ 2017-04-23 13:38 茶飘香~ 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description MG is an intelligent boy. One day he was challenged by the famous master called Douer: if the sum of the square of every elem 阅读全文
posted @ 2017-04-09 22:04 茶飘香~ 阅读(795) 评论(6) 推荐(0) 编辑
摘要: 题目链接 Problem Description MG is a rich boy. He has n apples, each has a value of V(0<=V<=9). A valid number does not contain a leading zero, and these 阅读全文
posted @ 2017-04-03 00:05 茶飘香~ 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 时间限制:c/c++语言1000MS; 其它语言3000MS 内存限制:c/c++语言65536KB;其他语言589824KB 如下图一个类似手机屏幕的矩形区域,宽度为w,高度为h,一个小球(视为质点,忽略其体积大小)初始位于底边距离左侧x的位置,向右上角45度发射。当小球碰到边界时,按 阅读全文
posted @ 2017-03-30 21:43 茶飘香~ 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 题目描述:给一个数组,里面有两个数只出现一次,其它的数都出现两次,请找出这两个数; 样例:输入 2 4 2 7 4 9 输出 7 9 思路:假定要找出的这两个数为x、y 把所有的数异或,结果是x与y异或的值,那么肯定不为0,那么这个值的二进制至少有一位为1,也就是说x和y的二进制在这一位上必定一个为 阅读全文
posted @ 2017-03-23 21:02 茶飘香~ 阅读(832) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 34 下一页