Skip to content

Instantly share code, notes, and snippets.

@henrybear327
Last active August 29, 2015 14:07
Show Gist options
  • Save henrybear327/fb85322ab15ac233129a to your computer and use it in GitHub Desktop.
Save henrybear327/fb85322ab15ac233129a to your computer and use it in GitHub Desktop.
ACM10055(one line).c
#include<stdio.h>
int main()
{
long long int input_1 = 0, input_2 = 0;
while(scanf("%lld %lld", &input_1, &input_2) != EOF)
printf("%lld\n", (input_1 - input_2 >= 0) ? input_1 - input_2 : input_2 - input_1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment