显示原始代码
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, i, j;
long long b[1001];
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &b[i]);
}
for (j = 1; j <= n; j++) {
if (b[j] >= 0 && b[j] < 1200)
printf("Newbie No\n");
else if (b[j] >= 1200 && b[j] < 1400)
printf("Pupil No\n");
else if (b[j] >= 1400 && b[j] < 1600)
printf("Specialist No\n");
else if (b[j] >= 1600 && b[j] < 1700)
printf("Expert No\n");
else if (b[j] >= 1700 && b[j] < 1900)
printf("Expert Yes\n");
else if (b[j] >= 1900 && b[j] < 2100)
printf("Candidate Master Yes\n");
else if (b[j] >= 2100 && b[j] < 2300)
printf("Master Yes\n");
else if (b[j] >= 2300 && b[j] < 2400)
printf(" International Master Yes\n");
else if (b[j] >= 2400 && b[j] < 2600)
printf("Grandmaster Yes\n");
else if (b[j] >= 2600 && b[j] < 3000)
printf("International Grandmaster Yes\n");
else if (b[j] >= 3000 && b[j] < 4000)
printf("Legendary Grandmaster Yes\n");
else if (b[j] >= 4000)
printf("Tourist Yes\n");
}
return 0;
}