上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页
摘要: 2015-2016 ACM-ICPC, NEERC, Northern Subregional Contest D Problem D. Distribution in Metagonia Input file: distribution.in Output file: distribution.o 阅读全文
posted @ 2016-08-02 11:33 茶飘香~ 阅读(796) 评论(0) 推荐(0) 编辑
摘要: Problem Description Give you a sequence of N(N≤100,000) integers : a1,...,an(0<ai≤1000,000,000). There are Q(Q≤100,000) queries. For each query l,r yo 阅读全文
posted @ 2016-07-20 14:10 茶飘香~ 阅读(409) 评论(0) 推荐(0) 编辑
摘要: ACm-ICPC Live Archive 7464 Robots Write a program to collect data from robots. We are given two sets of robots X = {X1, . . . , Xm}, Y = {Y1, . . . , 阅读全文
posted @ 2016-07-10 21:24 茶飘香~ 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 博客园页面设置 阅读全文
posted @ 2016-07-03 11:03 茶飘香~ 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 51Node 1065 最小正子段和 N个整数组成的序列a[1],a[2],a[3],…,a[n],从中选出一个子序列(a[i],a[i+1],…a[j]),使这个子序列的和>0,并且这个和是所有和>0的子序列中最小的。 例如:4,-1,5,-2,-1,2,6,-2。-1,5,-2,-1,序列和为1 阅读全文
posted @ 2016-07-02 18:35 茶飘香~ 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 51Node 1035 最长的循环节 正整数k的倒数1/k,写为10进制的小数如果为无限循环小数,则存在一个循环节,求<=n的数中,倒数循环节长度最长的那个数。 1/6= 0.1(6) 循环节长度为1 1/7= 0.(142857) 循环节长度为6 1/9= 0.(1) 循环节长度为1 正整数k的倒 阅读全文
posted @ 2016-07-02 18:33 茶飘香~ 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 51Node 1364 最大字典序排列(树状数组) 1364 最大字典序排列 基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 收藏 关注 1364 最大字典序排列 基准时间限制:1 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 1364 最大字 阅读全文
posted @ 2016-06-25 12:10 茶飘香~ 阅读(351) 评论(0) 推荐(0) 编辑
摘要: POJ 1681 Painter's Problem(高斯消元) Description There is a square wall which is made of n*n small square bricks. Some bricks are white while some bricks 阅读全文
posted @ 2016-06-16 18:25 茶飘香~ 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 转载自:高斯消元法 高斯消元法(Gauss Elimination) 分析 & 题解 & 模板——czyuan原创 高斯消元法,是线性代数中的一个算法,可用来求解线性方程组,并可以求出矩阵的秩,以及求出可逆方阵的逆矩阵。高斯消元法的原理是:若用初等行变换将增广矩阵 化为 ,则AX = B与CX = 阅读全文
posted @ 2016-06-15 11:00 茶飘香~ 阅读(462) 评论(0) 推荐(0) 编辑
摘要: ACdrea 1217 高斯消元 Description The following problem is somehow related to the final stage of many famous integer factorization algorithms involved in s 阅读全文
posted @ 2016-06-15 10:52 茶飘香~ 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页