
PAT A
文章平均质量分 82
privilage
这个作者很懒,什么都没留下…
展开
-
A1031. Hello World for U (20)/ 1993 problemB
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 de ll rlowoThat is, the characters must be pri...原创 2018-04-14 12:07:18 · 140 阅读 · 0 评论 -
A1036. Boys vs Girls (25)
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one test ...原创 2018-04-13 22:51:09 · 134 阅读 · 0 评论 -
A1006. Sign In and Sign Out (25)
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you...原创 2018-04-13 22:14:39 · 140 阅读 · 0 评论 -
A1011. 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. Si...原创 2018-04-13 20:52:44 · 116 阅读 · 0 评论 -
A1002. A+B for Polynomials (25)
This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomia...原创 2018-04-12 09:08:39 · 114 阅读 · 0 评论 -
A1065. A+B and C (64bit) (20)
Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C.Input Specification:The first line of the input gives the positive number of test cases, T (<=10). Then T...原创 2018-04-12 14:46:40 · 248 阅读 · 0 评论 -
A1042. 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 gambler...原创 2018-04-12 15:34:29 · 157 阅读 · 0 评论 -
A1009. Product of 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 information...原创 2018-04-12 16:51:02 · 477 阅读 · 0 评论 -
PAT (Advanced Level) Practice 导航
A1002 A1006 A1009 A1011 A1019 A1027 A1031 A1036 A1042 A1058 A1065原创 2018-04-15 22:21:39 · 230 阅读 · 0 评论 -
A1058. 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 Si...原创 2018-04-15 21:01:27 · 174 阅读 · 0 评论 -
A1027. 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 dig...原创 2018-04-15 20:19:03 · 153 阅读 · 0 评论 -
A1019. 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...原创 2018-04-15 16:39:38 · 138 阅读 · 0 评论 -
A1001 A+B Format
思路:数字范围可以用int型, 先进行计算,然后利用string型进行处理; 最前方部分特殊处理,之后部分按逗号+数字的格式输出。#include <iostream>#include <string>using namespace std;int main(){ int a, b; cin >> a >> b; i...原创 2019-04-05 11:27:29 · 1472 阅读 · 0 评论