
PAT甲级
文章平均质量分 69
Shine_YP
这个作者很懒,什么都没留下…
展开
-
python-PAT甲级题解-1006
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原创 2021-10-20 18:56:33 · 177 阅读 · 0 评论 -
python-PAT甲级题解-1005
Given a non-negative integerN, your task is to compute the sum of all the digits ofN, 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 anN(≤10100)....原创 2021-10-20 15:13:10 · 1173 阅读 · 0 评论 -
python-PAT甲级题解-1004
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts with a line containing0<N<100, the number of nod.原创 2021-10-20 14:57:18 · 240 阅读 · 0 评论 -
python-PAT甲级题解-1003
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 length of each road between any pair of cities are marked原创 2021-10-19 22:41:37 · 405 阅读 · 0 评论 -
python-PAT甲级题解-1002
This time, you are supposed to findA+BwhereAandBare 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:KN1aN1N2aN2...NKaNK...原创 2021-10-19 00:49:59 · 232 阅读 · 0 评论 -
python-PAT甲级题解-1001
Calculatea+band 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 o..原创 2021-10-18 21:34:15 · 228 阅读 · 0 评论