#include <stdio.h>
struct Person {
char id;
int salary;
};
typedef struct Person Person;
int main() {
Person p[10];
int n;
for (int i = 0; i < n; i++) {
scanf("%d", &p
[i
].
salary); }
int min;
int temp;
char ch;
for (int i = 0; i < n; i++) {
min = i;
for (int m = i + 1; m < n; m++) {
if (p[m].salary < p[min].salary) {
min = m;
temp = p[m].salary;
p[m].salary = p[min].salary;
p[min].salary = temp;
ch = p[m].id;
p[m].id = p[min].id;
p[min].id = ch;
}
}
}
for (int i = n - 1; i >= 0; i--) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgUGVyc29uIHsKICBjaGFyIGlkOwogIGludCBzYWxhcnk7Cn07CgogIAp0eXBlZGVmIHN0cnVjdCBQZXJzb24gUGVyc29uOwoKaW50IG1haW4oKSB7CiAgUGVyc29uIHBbMTBdOwogIGludCBuOwogIHNjYW5mKCIlZCIsICZuKTsKICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewogICAgc2NhbmYoIiAlYyIsICZwW2ldLmlkKTsKICAgIHNjYW5mKCIlZCIsICZwW2ldLnNhbGFyeSk7CiAgfQoKICAKICBpbnQgbWluOwogIGludCB0ZW1wOwogIGNoYXIgY2g7CiAgCgogIGZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CiAgICBtaW4gPSBpOwogIAogICAgZm9yIChpbnQgbSA9IGkgKyAxOyBtIDwgbjsgbSsrKSB7CiAgICAgIGlmIChwW21dLnNhbGFyeSA8IHBbbWluXS5zYWxhcnkpIHsKICAgICAgICBtaW4gPSBtOwogICAgICAgIHRlbXAgPSBwW21dLnNhbGFyeTsKICAgICAgICBwW21dLnNhbGFyeSA9IHBbbWluXS5zYWxhcnk7CiAgICAgICAgcFttaW5dLnNhbGFyeSA9IHRlbXA7CiAgICAgICAgY2ggPSBwW21dLmlkOwogICAgICAgIHBbbV0uaWQgPSBwW21pbl0uaWQ7CiAgICAgICAgcFttaW5dLmlkID0gY2g7CiAgICAgIH0KICAgIH0gIAogIH0gCiAgZm9yIChpbnQgaSA9IG4gLSAxOyBpID49IDA7IGktLSkgewogICAgcHJpbnRmKCIlYyAiLCBwW2ldLmlkKTsKICAgIHByaW50ZigiJWRcbiIsIHBbaV0uc2FsYXJ5KTsKICB9CiAgcmV0dXJuIDA7Cn0=