上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 52 下一页
摘要: 1 #include 2 #include 3 #include 4 #include 5 #define ll long long 6 using namespace std; 7 8 int t; 9 10 int main()11 {12 scanf("%d",&t);... 阅读全文
posted @ 2014-10-12 17:58 null1019 阅读(168) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=961贪心,排序,对左端点贪,找最大右端点。 1 #include 2 #include 3 #inclu... 阅读全文
posted @ 2014-10-12 14:38 null1019 阅读(121) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=955根据递推公式推倒出a1的公式。a1=(n*a0+an+1-2*(n*c1+(n-1)*c2+...+cn... 阅读全文
posted @ 2014-10-11 22:32 null1019 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目意思: 给定m个圆的半径,现在要求找到一个矩形使得每一个球都以地面相切,要求输出最小的矩阵的长度 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 in... 阅读全文
posted @ 2014-10-11 20:09 null1019 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=948 卡特兰数*n! 1 import java.math.BigInteger; 2 import jav... 阅读全文
posted @ 2014-10-10 18:20 null1019 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1050对与每个房间前面过道,操作一次标记一次,标记的最多的次数就是必须用的时间。 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using na... 阅读全文
posted @ 2014-10-09 21:08 null1019 阅读(103) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=947打出素数表,快速幂取模。 1 #include 2 #include 3 #include 4 #... 阅读全文
posted @ 2014-10-09 17:30 null1019 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=944区间dp,对于每段区间,他们的最优值都是由几段更小区间的最优值得到,是分治思想的一种应用,将一个区间问题... 阅读全文
posted @ 2014-10-09 16:48 null1019 阅读(111) 评论(0) 推荐(0) 编辑
摘要: http://acdream.info/problem?pid=1006 1 #include 2 #include 3 #include 4 #include 5 #define ll long long 6 #define maxn 10000 7 #define mod 1000000... 阅读全文
posted @ 2014-10-08 20:22 null1019 阅读(126) 评论(0) 推荐(0) 编辑
摘要: http://acdream.info/problem?pid=1007两个 long long 相乘会超long long 1 #include 2 #include 3 #include 4 #define ll long long 5 #define maxn 10000 6 #defi... 阅读全文
posted @ 2014-10-08 19:57 null1019 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 52 下一页