-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path1129.cpp
More file actions
46 lines (40 loc) · 651 Bytes
/
1129.cpp
File metadata and controls
46 lines (40 loc) · 651 Bytes
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
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
int x,y,z;
int c,cc;
while(scanf("%d",&n),n!=0)
{
for(int i=0;i<n;i++)
{
scanf("%d %d %d %d %d",&x,&y,&z,&c,&cc);
if(x<=127 && y>127 && z>127 && c>127 && cc>127)
{
printf("A\n");
}
else if(x>127 && y<=127 && z>127 && c>127 && cc>127)
{
printf("B\n");
}
else if(x>127 && y>127 && z<=127 && c>127 && cc>127)
{
printf("C\n");
}
else if(x>127 && y>127 && z>127 && c<=127 && cc>127)
{
printf("D\n");
}
else if(x>127 && y>127 && z>127 && c>127 && cc<=127)
{
printf("E\n");
}
else
{
printf("*\n");
}
}
}
return 0;
}