UVA 10055 -Hashmat the Brave Warrior

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
typedef  long long ll;
int main()
{   ll  a,b;
    while(cin>>a>>b)
    {
        if(a-b>=0)
           
            cout<<a-b<<endl;
        else
            cout<<b-a<<endl;
    }
    return 0;
}

你可能感兴趣的:(UVA 10055 -Hashmat the Brave Warrior)