-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path2417.c
More file actions
38 lines (20 loc) · 667 Bytes
/
2417.c
File metadata and controls
38 lines (20 loc) · 667 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
#include<stdio.h>
int main(){
int FV, FE, FS, CV, CE, CS;
scanf("%d %d %d %d %d %d", &CV, &CE, &CS, &FV, &FE, &FS);
int pontosC, pontosF;
pontosC = ((CV * 3) + CE);
pontosF = ((FV * 3) + FE);
if(pontosC > pontosF){
printf("C\n");
}else if(pontosC == pontosF && CS > FS){
printf("C\n");
}else if(pontosF > pontosC){
printf("F\n");
}else if(pontosF == pontosC && FS > CS){
printf("F\n");
}else if(pontosC == pontosF && FS == CS){
printf("=\n");
}
return 0;
}