一、注意:
-
pat較長的一串數(shù)字或者未作說明的輸入數(shù)字故黑,均為字符串儿咱。如:he registration number (a 13-digit number) and the total score of each testee.
image.png - 在使用stoi()方法將字符串轉(zhuǎn)為int 整型變量的時候注意溢出問題庭砍,本題中 1234567890001即發(fā)生溢出系谐,可以選用stol()方法將字符串轉(zhuǎn)為long 長整型變量阳液。
- sort()方法中的:
- 比較函數(shù)的設(shè)計
- 按照規(guī)定排好序之后,序列元素中的序號如何設(shè)計
- 單詞:
- the ranklists :排行榜
- the final rank:最終排名
- the number of test locations:測試地點數(shù)(組數(shù))
- the number of testees:參與人數(shù)
- location number:地點編號
- local rank:地方排名(組內(nèi)排名)