- 博客(8)
- 收藏
- 关注
原创 PAT(甲级)A-1102 Invert a Binary Tree(预处理反转)
PAT A-1102 Invert a Binary Tree(预处理反转)
2022-03-03 00:16:39
512
原创 PAT 乙级 1032-挖掘机(测试点2)
为了用事实说明挖掘机技术到底哪家强,PAT 组织了一场挖掘机技能大赛。现请你根据比赛结果统计出技术最强的那个学校。输入格式:输入在第 1 行给出不超过 10^5 的正整数 N,即参赛人数。随后 N 行,每行给出一位参赛者的信息和成绩,包括其所代表的学校的编号(从 1 开始连续编号)、及其比赛成绩(百分制),中间以空格分隔。输出格式:在一行中给出总得分最高的学校的编号、及其总分,中间以空格分隔。题目保证答案唯一,没有并列。输入样例:63 652 801 1002 703 403 0
2021-08-15 21:49:32
662
1
原创 PAT A1053 Path of Equal Weight
PAT A1053 Path of Equal Weight (30 分)Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti.The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R to any leaf node L.
2021-03-12 17:35:01
89
原创 PAT A1120 Friend Numbers 解题笔记
PAT A1120 Friend Numbers(20)Two integers are called “friend numbers” if they share the same sum of their digits, and the sum is their “friend ID”. For example, 123 and 51 are friend numbers since 1+2+3=5+1=6, and 6 is their friend ID. Given some numbers,
2021-03-09 18:15:14
110
原创 PAT A1001 A+B Format 巧妙解题方法
PAT A1001 A+B Format 巧妙解题题目描述: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
2021-03-08 12:25:29
187
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人