![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
取不出名字的牛肉面
这个作者很懒,什么都没留下…
展开
-
PAT 甲级 Consecutive Factors (20)
PAT Test 甲级20分真题(一)原创 2017-09-13 21:12:42 · 266 阅读 · 0 评论 -
1031. Hello World for U (20)
Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, “helloworld” can be printed as:h d e l l r lowo That is, the characters must be pri原创 2017-10-11 23:25:58 · 203 阅读 · 0 评论 -
1019. General Palindromic Number (20)
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.原创 2017-10-05 11:05:09 · 192 阅读 · 0 评论 -
1015. Reversible Primes (20)
A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pri原创 2017-10-03 11:32:17 · 159 阅读 · 0 评论 -
1041. Be Unique (20)
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 104]. The first one who bets on a原创 2017-10-18 21:07:09 · 230 阅读 · 0 评论 -
1008 Elevator(20)
1008. Elevator (20)时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The highest building in our city has only one elevator. A request list is made up with N positive number原创 2017-10-01 14:39:26 · 355 阅读 · 0 评论 -
Spell it Right(20) 1005
1005. Spell It Right (20)时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output原创 2017-09-30 10:48:04 · 159 阅读 · 0 评论 -
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 digi原创 2017-10-07 11:18:14 · 138 阅读 · 0 评论 -
PAT A+B Fomat
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).InputEach inpu原创 2017-09-27 19:35:06 · 174 阅读 · 0 评论 -
PAT 1132 Cut Integer(20)
题目是真的不难,但是考试的时候不知道因为什么原因一直异常错误,回来重新敲了遍却通过了,心态爆炸。另一个误解的地方就是167334/(167*334)的结果正好是3,就一直以为这个也是条件,结果只要是可以整除就好了。新的c++有了to_string函数可以将整型数据转化为string,调用size方法可以更简洁。此外要注意就是除数为0的情况。样例输入: 3 167334 2333 1234567原创 2017-09-18 17:22:10 · 390 阅读 · 0 评论 -
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 f原创 2017-09-15 23:41:16 · 240 阅读 · 0 评论 -
Raffle for Weibo Followers
A. Raffle for Weibo Followers (20)John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo – that is, he would select winners from every N followers原创 2017-09-15 15:20:59 · 202 阅读 · 0 评论 -
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 i原创 2017-10-15 22:39:59 · 178 阅读 · 0 评论