Thursday, April 14, 2016

Published April 14, 2016 by with 0 comment

UVA 10055: Hashmat the Brave Warrior -Solution

#include<stdio.h>
int main()
{
    long long int a,b,c;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        if(a>b) c=a-b;
        else c=b-a;
        printf("%lld\n",c);
    }
    return 0;
}
      edit

0 comments:

Post a Comment