pat
文章平均质量分 72
逆水之天
这个作者很懒,什么都没留下…
展开
-
1001. A+B Format (20)
为了保研,开始刷pat上面的题。这题很简单,但是总不能ac,原因就是思维不够缜密,少考虑了一个问题,就没能ac.原创 2015-09-04 09:31:04 · 252 阅读 · 0 评论 -
1015. Reversible Primes (20)
题不是很难,认真仔细点就能ac.原创 2015-09-05 11:08:40 · 318 阅读 · 0 评论 -
1019. General Palindromic Number (20)
这题非常简单,但自己花去了一个小时去检查,结果发现是No的格式错误,真是要吐血了,所以提醒自己,写完程序后必须先检查格式,然后才是边界问题。原创 2015-09-05 11:11:35 · 396 阅读 · 0 评论 -
1002. A+B for Polynomials (25)
多项式的加法,采用了静态数组作为存储,而非链表。原创 2015-09-04 09:45:17 · 341 阅读 · 0 评论 -
1004. Counting Leaves (30)
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. InputEach input file contains one test case. Each case starts with a line conta原创 2016-08-25 16:19:37 · 568 阅读 · 0 评论 -
1010. Radix (25)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is “yes”, if 6 is a decimal number and 110 is a binary number.Now for any pair of positive integ原创 2016-08-26 09:13:31 · 480 阅读 · 0 评论 -
1014. Waiting in Line (30)
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The space in原创 2016-08-26 17:24:41 · 540 阅读 · 0 评论