-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1129.c
53 lines (48 loc) · 975 Bytes
/
1129.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h>
int main()
{
int n, aux, certifica = 0;
while (1)
{
scanf("%d", &n);
if(n == 0 ){break;}
for(int i = 0; i < n; i++){
int qest[n];
for (int i = 0; i < 5; i++)
{
scanf("%d", &qest[i]);
if (qest[i] <= 127)
{
aux = i;
certifica++;
}
}
if (certifica == 1)
{
switch (aux)
{
case 0:
printf("A\n");
break;
case 1:
printf("B\n");
break;
case 2:
printf("C\n");
break;
case 3:
printf("D\n");
break;
case 4:
printf("E\n");
break;
}
}
else
{
printf("*\n");
}
certifica = 0;
}
}
}