Search Here

Tuesday, May 5, 2015

UVa - 10055 ( Hashmat The Brave Warrior Solution)

Tip : Try Yourself First . For Help Scroll Down



Code:



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




=> Questions ?? Leave A Comment . I'll Try My Best To Reply


No comments:

Post a Comment