摘要:
入门: PAT(A) 1042. Shuffling Machine (20) PAT(A) 1046. Shortest Distance (20) PAT(A) 1065. A+B and C (64bit) (20) PAT(A) 1002. A+B for Polynomials (25) 阅读全文
posted @ 2017-03-14 18:40
claremz
阅读(425)
评论(0)
推荐(0)
摘要:
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g 阅读全文
posted @ 2017-03-14 18:38
claremz
阅读(358)
评论(0)
推荐(0)
摘要:
It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if 阅读全文
posted @ 2017-03-14 17:50
claremz
阅读(870)
评论(0)
推荐(0)
摘要:
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and 阅读全文
posted @ 2017-03-14 17:36
claremz
阅读(202)
评论(0)
推荐(0)
摘要:
The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist 阅读全文
posted @ 2017-03-14 17:33
claremz
阅读(503)
评论(0)
推荐(0)
摘要:
Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to si 阅读全文
posted @ 2017-03-14 17:25
claremz
阅读(247)
评论(0)
推荐(0)
摘要:
Excel can sort records according to any column. Now you are supposed to imitate this function. Input Each input file contains one test case. For each 阅读全文
posted @ 2017-03-14 17:16
claremz
阅读(166)
评论(0)
推荐(0)
摘要:
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim 阅读全文
posted @ 2017-03-14 17:13
claremz
阅读(175)
评论(0)
推荐(0)
摘要:
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi 阅读全文
posted @ 2017-03-14 17:06
claremz
阅读(252)
评论(0)
推荐(0)
摘要:
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat 阅读全文
posted @ 2017-03-14 16:59
claremz
阅读(233)
评论(0)
推荐(0)
摘要:
About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theor 阅读全文
posted @ 2017-03-14 16:43
claremz
阅读(248)
评论(0)
推荐(0)
摘要:
Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam 阅读全文
posted @ 2017-03-14 16:34
claremz
阅读(386)
评论(0)
推荐(0)
摘要:
The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s 阅读全文
posted @ 2017-03-14 15:56
claremz
阅读(211)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-03-14 15:47
claremz
阅读(183)
评论(0)
推荐(0)
摘要:
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 Specificat 阅读全文
posted @ 2017-03-14 15:21
claremz
阅读(189)
评论(0)
推荐(0)
摘要:
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 t 阅读全文
posted @ 2017-03-14 15:01
claremz
阅读(434)
评论(0)
推荐(0)
摘要:
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+- 阅读全文
posted @ 2017-03-14 14:49
claremz
阅读(273)
评论(0)
推荐(0)
摘要:
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a min 阅读全文
posted @ 2017-03-14 14:37
claremz
阅读(262)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-03-14 14:23
claremz
阅读(188)
评论(0)
推荐(0)
摘要:
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, wher 阅读全文
posted @ 2017-03-14 14:20
claremz
阅读(168)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-03-14 14:17
claremz
阅读(229)
评论(0)
推荐(0)
摘要:
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: That is 阅读全文
posted @ 2017-03-14 14:12
claremz
阅读(231)
评论(0)
推荐(0)
摘要:
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. Inp 阅读全文
posted @ 2017-03-14 13:59
claremz
阅读(206)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-03-14 13:53
claremz
阅读(204)
评论(0)
推荐(0)
摘要:
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 ba 阅读全文
posted @ 2017-03-14 13:45
claremz
阅读(156)
评论(0)
推荐(0)
摘要:
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 p 阅读全文
posted @ 2017-03-14 13:30
claremz
阅读(339)
评论(0)
推荐(0)
摘要:
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2017-03-14 13:22
claremz
阅读(267)
评论(0)
推荐(0)
摘要:
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 "ins 阅读全文
posted @ 2017-03-14 13:18
claremz
阅读(1004)
评论(0)
推荐(1)
摘要:
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 occu 阅读全文
posted @ 2017-03-14 13:06
claremz
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号