Created
July 6, 2015 08:53
-
-
Save rogerioagjr/8e9d83eb8d712101d07b to your computer and use it in GitHub Desktop.
Campeonato - Roger Benet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
int main(){ | |
int cv,ce,cs,fv,fe,fs,pc,pf; | |
scanf("%d %d %d %d %d %d", &cv, &ce, &cs, &fv, &fe, &fs); | |
pc = cv * 3 + ce; | |
pf = fv * 3 + fe; | |
if(pc > pf)printf("C\n"); | |
else if(pc < pf)printf("F\n"); | |
else { | |
if(cs > fs)printf("C\n"); | |
else if(cs < fs)printf("F\n"); | |
else printf("=\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment