Created
November 2, 2014 12:25
-
-
Save amoshyc/77b384373362669f2bbe to your computer and use it in GitHub Desktop.
uva10055.c
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
long long abs_(long long a) { | |
return ((a < 0) ? -a: a); | |
} | |
int main() { | |
long long a, b; | |
while (scanf("%lld %lld", &a, &b) != EOF) { | |
printf("%lld\n", abs_(a-b)); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment