Skip to content

Instantly share code, notes, and snippets.

@gbrls
Created May 29, 2020 00:56
Show Gist options
  • Save gbrls/4b5314406ec01eb2e55d3501741f3046 to your computer and use it in GitHub Desktop.
Save gbrls/4b5314406ec01eb2e55d3501741f3046 to your computer and use it in GitHub Desktop.
max(a, b) { if(a > b) return a; return b; }
main(a,b,c) { scanf("%d%d%d",&a,&b,&c); printf("%d\n",max(max(a-(b+c),b),c)); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment