PAT甲级
独人_
这个作者很懒,什么都没留下…
展开
-
1006 Sign In and Sign Out (25分)C++
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you are supposed to find the ones who have unlocked and loc原创 2020-09-05 22:40:07 · 230 阅读 · 0 评论 -
1001 A+B Format (20分)C++
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 Specification:Each input file contains one test case. Each case contains a pair of i原创 2020-09-04 22:24:44 · 330 阅读 · 0 评论 -
1002 A+B for Polynomials (25分)C++
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 line contains the information of a polynomial:K N1 aN1 N2 a原创 2020-09-04 22:26:46 · 228 阅读 · 0 评论 -
1005 Spell It Right (20分)C++
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each case occupies one line which contains an N (≤10100原创 2020-09-04 22:28:25 · 119 阅读 · 0 评论 -
1008 Elevator (20分)C++
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 order. It costs 6 seconds to move the elevator up one flo原创 2020-09-04 21:19:41 · 188 阅读 · 0 评论