原题连接:https://pta.patest.cn/pta/test/16/exam/4/question/677 题目如下: 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…
#include<iostream> #include<string> using namespace std; int getLength(string str0); int main(){ int n, index=0; cin>>n; //define dynamic array string *str=new string[n]; //initialize the array for(int i=0;i<n;i++){ cin>>str[i];…