
PAT
文章平均质量分 65
King_Arthur#
当我变秃了的时候,我就变强了!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1100 Mars Numbers (20 分)
1100 Mars Numbers (20 分) People on Mars count their numbers with base 13: Zero on Earth is called “tret” on Mars. The numbers 1 to 12 on Earth is called “jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec” on Mars, respectively. For the next high原创 2021-02-22 20:39:51 · 118 阅读 · 0 评论 -
1042 Shuffling Machine (20 分)
1042 Shuffling Machine (20 分) Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers by performing inadequat原创 2021-02-21 20:21:54 · 149 阅读 · 0 评论 -
1017 A除以B (20 分)
1017 A除以B (20 分) 本题要求计算 A/B,其中 A 是不超过 1000 位的正整数,B 是 1 位正整数。你需要输出商数 Q 和余数 R,使得 A=B×Q+R 成立。 输入格式: 输入在一行中依次给出 A 和 B,中间以 1 空格分隔。 输出格式: 在一行中依次输出 Q 和 R,中间以 1 空格分隔。 输入样例: 123456789050987654321 7 输出样例: 17636684150141093474 3 #include <bits/stdc++.h>原创 2021-02-21 19:33:53 · 163 阅读 · 0 评论 -
1031 Hello World for U (20 分)
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 printed in the original order,原创 2021-02-20 19:59:30 · 227 阅读 · 0 评论 -
1035 Password (20 分)
1035 Password (20 分) 如题: 不会。。。看的这位大佬的☞☞☞我是网站 #include<bits/stdc++.h> using namespace std; pair<string,string>pa; int main() { int n; scanf("%d",&n); vector<pair<string,string> >vec; for(int i=0;i<n;i++)原创 2021-02-19 21:07:23 · 91 阅读 · 0 评论 -
1023 Have Fun with Numbers (20 分)
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 n原创 2021-02-19 21:01:14 · 110 阅读 · 0 评论 -
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 , the middle 2 digits for , and the last 2 digits原创 2021-02-18 19:26:31 · 100 阅读 · 0 评论 -
1019 General Palindromic Number (20 分)
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. 就给你们看看吧,不给你们原创 2021-02-17 21:24:03 · 84 阅读 · 0 评论 -
1015 Reversible Primes (20 分)
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 prime. Now given any two po原创 2021-02-17 21:01:45 · 105 阅读 · 0 评论 -
1011 World Cup Betting (20 分)
1011 World Cup Betting (20 分) With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the World Cup trophy in South Africa. Similarly, football betting原创 2021-02-16 17:38:51 · 129 阅读 · 1 评论 -
1008 Elevator (20 分)
1008 Elevator (20 分) The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one f原创 2021-02-15 21:18:57 · 104 阅读 · 0 评论 -
1005 Spell It Right (20 分)
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 whic原创 2021-02-15 17:03:20 · 88 阅读 · 0 评论 -
1034 Head of a Gang (30 分)
1034 Head of a Gang (30 分) One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be the total time length of all原创 2021-02-14 22:43:19 · 167 阅读 · 0 评论 -
PAT 1001 A+B
题目如下~ 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 pai原创 2021-02-09 20:25:33 · 100 阅读 · 0 评论