一、注意:
-
pat较长的一串数字或者未作说明的输入数字,均为字符串。如:he registration number (a 13-digit number) and the total score of each testee.
image.png - 在使用stoi()方法将字符串转为int 整型变量的时候注意溢出问题,本题中 1234567890001即发生溢出,可以选用stol()方法将字符串转为long 长整型变量。
- sort()方法中的:
- 比较函数的设计
- 按照规定排好序之后,序列元素中的序号如何设计
- 单词:
- the ranklists :排行榜
- the final rank:最终排名
- the number of test locations:测试地点数(组数)
- the number of testees:参与人数
- location number:地点编号
- local rank:地方排名(组内排名)