![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我刷PAT
文章平均质量分 80
Rainiwalk
我好像是一个在海边玩耍的孩子,不时为拾到比通常更光滑的石子或更美丽的贝壳而欢欣鼓舞
展开
-
我刷PAT - 1102 Invert a Binary Tree (25 分)
题目介绍 The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off. Now it's your turn to prove that YOU CAN invert a binary tree! Input S原创 2022-02-28 21:27:30 · 251 阅读 · 0 评论 -
我刷PAT - 1108 Finding Average (20 分)
题目介绍 The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number in [−1000,1000] and is accurate up to no m原创 2022-02-18 10:55:49 · 166 阅读 · 0 评论 -
我刷PAT - 1024 Palindromic Number (25 分)
题目介绍 A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers. Non-palindromic numbers can be paired with pali原创 2022-02-10 20:01:41 · 345 阅读 · 0 评论 -
我刷PAT - 1023 Have Fun with Numbers (20 分)
题目介绍 Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number consisting exactly the numbers from 1 to 9, only in a原创 2022-02-09 21:56:17 · 201 阅读 · 0 评论 -
我刷PAT - 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). Input Specification: Each input file contains one test case. Each case contains a原创 2022-02-09 17:10:07 · 621 阅读 · 0 评论