摘要: 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) 编辑