- 博客(13)
- 收藏
- 关注
原创 1008Elevator (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 cost...
2018-07-24 14:20:25
231
原创 1006Sign 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 ou...
2018-07-24 11:37:04
278
原创 1005Spell 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. 输入描述:Each input file contains one test case. Each ca...
2018-07-23 15:39:18
201
原创 1002A+B for Polynomials (25)
题目描述This time, you are supposed to find A+B where A and B are two polynomials. 输入描述:Each input file contains one test case. Each case occupies 2 lines, and each line contains the information...
2018-07-23 15:15:47
170
原创 1001A+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). 输入描述:Each input file con...
2018-07-23 10:59:28
229
原创 1036Boys 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. 输入描述:Each input file contains one test ...
2018-07-23 10:36:07
269
原创 1035Password (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) fr...
2018-07-20 12:40:38
210
原创 1029Median (25)
题目描述Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is...
2018-07-18 15:17:05
271
原创 1028List Sorting (25)
题目描述Excel can sort records according to any column. Now you are supposed to imitate this function. 输入描述:Each input file contains one test case. For each case, the first line contains two i...
2018-07-18 15:16:23
259
原创 1027Colors 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 midd...
2018-07-18 15:15:33
164
原创 1054The Dominant Color (20)
题目描述Behind 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 call...
2018-07-18 15:13:09
164
原创 1083List Grades (25)
题目描述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 output those student records of which the...
2018-07-18 15:11:56
185
原创 1082Read Number in Chinese (25)
题目描述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 example, -123456789 is read as "Fu yi Yi er Q...
2018-07-18 15:10:57
284
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人