PAT-A
PAT甲级题解
总是WA的十四
蒟蒻+懒
展开
-
PAT (Advanced Level) T1005 Spell It Right
link 题目描述 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. 输入描述 Each input file contains one test case. Each cas...原创 2019-12-11 15:32:24 · 69 阅读 · 0 评论 -
PAT (Advanced Level) T1004 Counting Leaves
link 题目描述 A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. 输入描述 Each input file contains one test case. Each case starts with...原创 2019-12-11 14:30:54 · 81 阅读 · 0 评论 -
PAT (Advanced Level) T1001 A+B Format
link 题目描述 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). 输入描述 Each input file c...原创 2019-12-10 20:21:15 · 81 阅读 · 0 评论 -
PAT (Advanced Level) T1002 A+B for Polynomials
link 题目描述 This time, you are supposed to find A+B where A and B are two polynomials. 输入描述 Each input file contains one test case. Each case occupies 2 lines, and each line contains the information ...原创 2019-12-10 19:57:38 · 76 阅读 · 0 评论 -
PAT (Advanced Level) T1003 Emergency
link 题目描述 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 cit...原创 2019-12-10 19:29:12 · 99 阅读 · 0 评论