……

outman013 2023-04-16 13:20:44 26

………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………

{{ vote && vote.total.up }}

共 7 条回复

wczrh 神への挑戦は...... 陰謀のなさ
Even226 逗比

举报

bai123 暗区传说

#include #include using namespace std; struct student { string name; int c; }; student s[21]; bool cmp(student a, student b) { if (a.c != b.c) return a.c > b.c; else return a.name < b.name; } int main() { int n; cin >> n; for (int i = 0; i < n; i++) { cin >> s[i].name >> s[i].c; } sort(s, s + n, cmp); for (int i = 0; i < n; i++) { cout << s[i].name << " " << s[i].c << endl; } return 0; }

txz 一打七

.....................

jxy11

? ??

Even226 逗比

....................................................

ykj84 Accepted