#include <stdio.h>
#define NUM 10
int main() {
    int scores[NUM] = {25, 39, 42, 76, 35, 48, 81, 41, 74, 55};
    printf("\n合格者：");
    for (int k = 0; k < 3; k++) {
        int max_score = -1;
        int max_index = -1;
        for (int i = 0; i < NUM; i++) {
            if (scores[i] > max_score) {
                max_score = scores[i];
                max_index = i;
            }
        }
        printf("%d人目", max_index + 1);
        if (k < 2) printf(" ");
        scores[max_index] = -1; 
    }

    printf("\n");

    return 0;
}
