Skip to content

Instantly share code, notes, and snippets.

@jmatsu
Last active August 29, 2015 14:00
Show Gist options
  • Save jmatsu/11398371 to your computer and use it in GitHub Desktop.
Save jmatsu/11398371 to your computer and use it in GitHub Desktop.
m,f,r,s;void main(o){for(;o=65,scanf("%d %d %d\n", &m,&f,&r),s=m+f,~m||~f||~r;putchar('\n'))putchar(o+=(m==-1||f==-1||s<30)?5:(s<50)?(r>49)?2:3:(s<65)?2:(s<80)?1:0);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment