PAT算法题
asdfghjklopqz
这个作者很懒,什么都没留下…
展开
-
1004 Counting Leaves C语言
@PAT 题库1004 Counting Leaves (30 分) 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 contai...原创 2019-08-05 10:24:12 · 222 阅读 · 0 评论 -
1003 Emergency C语言
@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 resc...原创 2019-08-03 19:56:51 · 406 阅读 · 0 评论 -
1002 A+B for Polynomials C语言
@pat 题库1002 A+B for Polynomials (25 分) 菜鸟学编程 输入输出要求 Sample Input: 2 1 2.4 0 3.2 2 2 1.5 1 0.5 Sample Output: 3 2 1.5 1 2.9 0 3.2 代码如下: #include <stdio.h> #include <string.h> double eps...原创 2019-08-03 18:51:15 · 185 阅读 · 0 评论 -
1001 A+B Format C语言
@PTA 题库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). In...原创 2019-08-02 14:13:40 · 288 阅读 · 0 评论 -
1005 Spell It Right C语言
@PAT 题库1005 Spell It Right (20 分) 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 ...原创 2019-08-05 21:31:45 · 290 阅读 · 0 评论