
PAT
文章平均质量分 67
Ziiyan
这个作者很懒,什么都没留下…
展开
-
PAT - 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 in each city and the l...原创 2018-07-16 23:50:45 · 217 阅读 · 0 评论 -
PAT - 1065 A+B and C (64bit) (20)
Given three integers A, B and C in [-2^63^, 2^63^], you are supposed to tell whether A+B > C.InputThe first line of the input gives the positive number of test cases, T (<=10). Then T test c...原创 2018-07-24 23:45:11 · 362 阅读 · 0 评论 -
PAT - 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).InputEach input file contains ...原创 2018-07-13 21:49:56 · 179 阅读 · 0 评论 -
PAT - 1002 A+B for Polynomials (25)
This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polyn...原创 2018-07-13 23:03:07 · 181 阅读 · 0 评论 -
PAT - 1033 To Fill or Not to Fill (25)
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different ga...原创 2018-07-21 23:02:29 · 208 阅读 · 0 评论 -
PAT - 1040 Longest Symmetric String (25)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given “Is PAT&TAP symmetric?”, the longest symmetric sub-string is “s PAT&TAP s”, hence ...原创 2018-07-21 23:34:07 · 185 阅读 · 0 评论