Monday, 28 December 2015

UVA 10055 - Hashmat the Brave Warrior_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://uva.onlinejudge.org/external/100/p10055.pdf
*/

#include <iostream>
using namespace std;

int main() {
 long long a,b;
 while(cin >> a >> b){
 if(a>b){
  cout << a-b << endl;
 }
 else{
  cout << b-a << endl;
 }
 }
 return 0;
}

No comments:

Post a Comment