-
-
Save zid/d4537f65e72af95a7e605e60297a2c3e to your computer and use it in GitHub Desktop.
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
while(1) | |
{ | |
int o, m; | |
if(!fgets(line, 128, f)) | |
break; | |
o = line[0] - 'A'; | |
m = line[2] - 'X'; | |
sum += ((o==m)+(((o^2)-!!(o^2)==m)<<1))*3+m+1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment