Wednesday 18 May 2011

10055-Hashmat the brave warrior

#include<iostream>
using namespace std;
int main()
{
    long h,o;
    //freopen("in.txt","r",stdin);
    while(cin>>h>>o)
    {
        if(h>o)
            cout<<(h-o)<<"\n";
        else
            cout<<(o-h)<<"\n";
    }
    return 0;
}

No comments:

Post a Comment