摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1008//模拟 无亮点# include int main(){ int n; while(scanf("%d",&n) && n) { int Target, Last = 0, Time = 0; for(... 阅读全文
posted @ 2015-03-22 12:31 懒人の猫 阅读(146) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1042题意清晰..简单明了开门见山的大数乘法..10000的阶乘有35000多位 数组有36000够了# include # include # define MAX 36000int BigNum[MAX], N... 阅读全文
posted @ 2015-02-21 22:24 懒人の猫 阅读(241) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1041有一个初始只有一个1的串 每次都按①0 -> 10;②1 -> 01;这两条规则进行替换形如:n = 1 1 n = 2 01 n = 3 1001 ...求经过n步替换之后 串中只含复数个0的连... 阅读全文
posted @ 2015-02-21 21:25 懒人の猫 阅读(288) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1007给出n个玩具(抽象为点)的坐标 求套圈的半径 要求最多只能套到一个玩具实际就是要求最近的两个坐标的距离典型的最近点对问题最近点对详解http://blog.csdn.net/lonelycatcher/art... 阅读全文
posted @ 2015-02-21 15:25 懒人の猫 阅读(663) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1005给出两个初值f(1) = 1;f(2) = 1和 递推公式f(n) = (a * f(n - 1) + b * f(n - 2)) % 7输入a,b,n 要求输出f(n)1 int f[55], a, b, ... 阅读全文
posted @ 2015-02-21 00:58 懒人の猫 阅读(185) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1004输入N个字符串 输出出现频率最高的字符串# include # include # define MAX 1005struct BALLOON{ char Color[20]; int Times;//同颜色... 阅读全文
posted @ 2015-02-20 22:48 懒人の猫 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1003给出一个包含n个数字的序列{a1,a2,..,ai,..,an},-1000# define INF 1000000000int main(){ int Start, End, Sum, Max, Num, ... 阅读全文
posted @ 2015-02-20 18:09 懒人の猫 阅读(237) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1002输入的数都是正整数,比较好处理,注意进位。//非负大整数加法# include # include # define MAX 1100int main(){ int t; char Num1[MAX], Nu... 阅读全文
posted @ 2015-02-20 16:56 懒人の猫 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1001# include int main (){ int n; while(scanf("%d",&n) != EOF) { int Sum = 0; for(int i = 1; i <= n; i++) ... 阅读全文
posted @ 2015-02-20 16:05 懒人の猫 阅读(95) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1000# include int main(){ __int64 a, b; while(scanf("%I64d %I64d",&a, &b) != EOF) printf("%I64d\n",a + b); ... 阅读全文
posted @ 2015-02-20 15:00 懒人の猫 阅读(134) 评论(0) 推荐(0) 编辑