PAT
Artorias7
_(°ω°」∠)_
展开
-
PAT学习日志(1)--B1012 数字分类
关于测试点最后一点 给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A1= 能被 5 整除的数字中所有偶数的和; A2= 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n1−n2+n3−n4⋯; A3= 被 5 除后余 2 的数字的个数; A4= 被 5 除后余 3 的数字的平均数,精确到小数点后 1 位; A5= 被 5 除后余 4 的数字中最大数...原创 2019-07-29 19:50:39 · 130 阅读 · 0 评论 -
PAT学习日志(3)--A1046 Shortest Distance
A1046 Shortest Distance The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. Input Specification...原创 2019-07-30 23:53:59 · 105 阅读 · 0 评论 -
PAT学习日志(4)--A1065 A+B and C (64bit)
A1065 A+B and C (64bit) Given three integers A, B and C in [−2^63 ,2^63 ], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive number ...原创 2019-07-31 11:50:56 · 126 阅读 · 0 评论 -
PAT学习日志(5)--A1002 A+B for Polynomials
A1002 A+B for Polynomials This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each ...原创 2019-07-31 18:29:01 · 202 阅读 · 0 评论 -
PAT学习日志(6)--A1009 Product of Polynomials
A1009 Product of Polynomials This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and ea...原创 2019-08-01 11:16:09 · 100 阅读 · 0 评论