摘要: 题目链接:http://www.patest.cn/contests/pat-a-practise/1002题目很简单,求两个多项式相加的结果,一开始ZS用数据结构里的链表去敲,只对两组数据,怎么也找不到错误,后来果断换成数组模拟,一次AC,但还是没想明白链表哪错了!数组模拟AC代码:#includ... 阅读全文
posted @ 2015-12-02 22:32 ~Arno 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5492题目大意是有一个矩阵,从左上角走到右下角,每次能向右或者向下,把经过的数字记下来,找出一条路径是这些数的方差最小。Find a pathTime Limit: 2000/1000 MS (Java/... 阅读全文
posted @ 2015-10-05 21:13 ~Arno 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5491The NextTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submis... 阅读全文
posted @ 2015-10-04 11:24 ~Arno 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5363Problem Descriptionsoda has a setSwithnintegers{1,2,…,n}. A set is called key set if the sum of int... 阅读全文
posted @ 2015-08-30 16:24 ~Arno 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choos... 阅读全文
posted @ 2015-08-30 15:50 ~Arno 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5417Problem DescriptionVictor has a machine. When the machine starts up, it will pop out a ball immedia... 阅读全文
posted @ 2015-08-29 22:20 ~Arno 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=5414Problem DescriptionCRB has two stringssandt.In each step, CRB can select arbitrary charactercofsand i... 阅读全文
posted @ 2015-08-28 17:07 ~Arno 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5410Problem DescriptionToday is CRB's birthday. His mom decided to buy many presents for her lovely son... 阅读全文
posted @ 2015-08-27 17:35 ~Arno 阅读(117) 评论(0) 推荐(0) 编辑
摘要: DescriptionAs shown in the following figure, If another lighthouse is in gray area, they can beacon each other.For example, in following figure, (B, R... 阅读全文
posted @ 2015-08-26 15:03 ~Arno 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1037DescriptionRichard just finished building his new house. Now the only thing the house misses is a cute little woode... 阅读全文
posted @ 2015-08-24 21:45 ~Arno 阅读(277) 评论(0) 推荐(0) 编辑