“Sometimes it is the people no one can imagine anything of who do the things no one can imagine.” ― Sir Alan Turing


ADS

ADS

Saturday, April 8, 2017

UVa 10055 Hashmat the brave warrior Solution in C / C++

 

Source Code 

#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;
}

No comments:

Post a Comment