PAT
文章平均质量分 62
Miraitowa_FTY
这个作者很懒,什么都没留下…
展开
-
PAT甲级---1035 Password (20 分)
PAT甲级—1035 Password (20 分)To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) fr原创 2022-03-02 19:30:55 · 113 阅读 · 0 评论 -
PAT甲级---1058 A+B in Hogwarts (20 分)
PAT甲级—1058 A+B in Hogwarts (20 分)If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it’s easy enough.原创 2022-03-02 19:14:08 · 135 阅读 · 0 评论 -
PAT甲级---1005 Spell It Right (20 分)
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 file contains one test case. Each case occupies one line原创 2022-03-02 19:12:05 · 180 阅读 · 0 评论 -
PAT甲级---1023 Have Fun with Numbers (20 分)
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原创 2022-03-02 15:56:22 · 141 阅读 · 0 评论 -
PAT甲级---1027 Colors in Mars (20 分)
1027 Colors in Mars (20 分)People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle 2 digits for Green, and the last 2原创 2022-03-02 12:27:32 · 125 阅读 · 0 评论 -
PAT甲级---1054 The Dominant Color
PAT甲级—1054 The Dominant ColorBehind the scenes in the computer’s memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the dominant color. A strictly原创 2022-03-02 00:27:10 · 116 阅读 · 0 评论 -
PAT甲级1003 Emergency (25 分)
PAT甲级1003 Emergency (25 分)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 rescue teams in each city and the length o原创 2022-03-02 00:22:26 · 106 阅读 · 0 评论 -
PAT甲级1002 A+B for Polynomials 25
1002 A+B for Polynomials 251002 A+B for Polynomials (25 分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the infor原创 2022-03-01 13:38:07 · 101 阅读 · 0 评论 -
PAT甲级---1001 A+B Format
1001 A+B FormatCalculate 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 cont原创 2022-03-01 12:35:11 · 102 阅读 · 0 评论