PTA甲级
Vinarun
这个作者很懒,什么都没留下…
展开
-
PTA甲级——1001A+B Format
1001 A+B Format (20 分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Spe...原创 2019-07-04 21:15:47 · 260 阅读 · 0 评论 -
PTA甲级——1002 A+B for Polynomials (25 分)
1002 A+B for Polynomials (25 分) 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, a...原创 2019-07-04 21:17:09 · 246 阅读 · 0 评论 -
PTA甲级——1136 A Delayed Palindrome (20 分)
1136 A Delayed Palindrome (20 分) Consider a positive integer N written in standard notation with k+1 digits ai as ak⋯a1a0 with 0≤ai<10 for all i and ak>0. Then N is palindromi...原创 2019-09-02 15:38:59 · 129 阅读 · 0 评论 -
PTA甲级——1003 Emergency (25 分)
1003 Emergency (25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams...原创 2019-09-05 14:56:33 · 360 阅读 · 0 评论 -
PTA甲级——1008 Elevator (20 分)
1008 Elevator (20 分) The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified...原创 2019-09-05 16:15:25 · 169 阅读 · 0 评论 -
PTA甲级——1009 Product of Polynomials (25 分)
1009 Product of Polynomials (25 分) 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...原创 2019-09-06 10:07:54 · 186 阅读 · 0 评论 -
PTA甲级——1012 The Best Rank (25 分)
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 L...原创 2019-09-06 12:45:58 · 273 阅读 · 0 评论 -
PTA甲级——1118 Birds in Forest (25 分)
1118 Birds in Forest (25 分) Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the...原创 2019-09-07 10:59:20 · 161 阅读 · 0 评论