#include <stdio.h>
int main(void) {
double notas[10];
for (int i = 0; i < 10; i++) {
}
int j = 0, count = 0;
double soma = 0;
for (int i = 0; i < 10; i++) {
if (notas[i] > 5) {
soma = soma + notas[i];
count++;
}
}
double media = soma / count;
int P[10];
for (int i = 0; i < 10; i++) {
if (notas[i] >= media) {
P[j] = i;
j++;
}
}
for (int i = 0; i < j; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7Cglkb3VibGUgbm90YXNbMTBdOwoJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKSB7CgkgICAgcHJpbnRmKCJEaWdpdGUgJWQ6ICIsIGkpOwoJICAgIHNjYW5mKCIlbGYiLCAmbm90YXNbaV0pOwoJfQoJaW50IGogPSAwLCBjb3VudCA9IDA7Cglkb3VibGUgc29tYSA9IDA7Cglmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspIHsKCSAgICBpZiAobm90YXNbaV0gPiA1KSB7CgkgICAgICAgIHNvbWEgPSBzb21hICsgbm90YXNbaV07CgkgICAgICAgIGNvdW50Kys7CgkgICAgfQoJfQoJZG91YmxlIG1lZGlhID0gc29tYSAvIGNvdW50OwoJaW50IFBbMTBdOwoJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKSB7CgkgICAgaWYgKG5vdGFzW2ldID49IG1lZGlhKSB7CgkgICAgICAgIFBbal0gPSBpOwoJICAgICAgICBqKys7CgkgICAgfQoJfQogICAgcHJpbnRmKCIlLjJsZlxuIiwgbWVkaWEpOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBqOyBpKyspIHsKCSAgICBwcmludGYoIiVkICAiLCBQW2ldKTsKCX0KCXJldHVybiAwOwp9