Skip to content

Instantly share code, notes, and snippets.

@pinglunliao
Last active November 5, 2019 08:52
Show Gist options
  • Save pinglunliao/ad5e012790d9f86516d7 to your computer and use it in GitHub Desktop.
Save pinglunliao/ad5e012790d9f86516d7 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
long long int a, b, d;
while( cin >> a >> b )
{
d = a - b;
if( d < 0 )
d = -d;
cout << d <<endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment