pat
BITcoder
这个作者很懒,什么都没留下…
展开
-
PAT 1012(甲级) The Best Rank
1012. The Best Rank (25) To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and E - English. At the mean time, we enc原创 2017-07-19 15:10:37 · 406 阅读 · 1 评论 -
PAT 1009(甲级) Product of Polynomials
1.简单题直接开辟数组在对应的下标作为指数的情况下,保存每一项的系数即可。注意数组开的足够大,至少是2000; 2.我用的链表,有一处坑点是注意系数可能取负值。 #includeiostream> #includeiomanip> using namespace std; typedef struct node{ int e; float c; node *next;原创 2017-07-17 12:04:09 · 428 阅读 · 0 评论 -
PAT 1007(甲级)Maximum Subsequence Sum
Maximum Subsequence Sum原创 2017-07-15 10:03:58 · 429 阅读 · 0 评论