本文主要是介绍1075 PAT Judge 的几点说明,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
刷题太多,容易忘掉自我……
所以,这种题,一定要先把题目读明白了,比如,这里的学生id就指明了从00001开始。
然后这道题还有一个小问题:
数组默认是从0开始的,但是这里不管是学生id还是题目id都是从1开始的,所以,需要开辟一个大一号的数组。
原题如下
The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT.
Input Specification:
Each input file contains one test case. For each case, the first line contains 3 positive integers, N (≤104), the total number of users, K (≤5), the total number of problems, and M (≤105), the total number of submissions. It is then assumed that the user id's are 5-digit numbers from 00001 to N, and the problem id's are from 1 to K. The next line contains K positive integers p[i]
(i
=1, ..., K), where p[i]<
这篇关于1075 PAT Judge 的几点说明的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!