Solution - UVa Problem 10055 Hashmat the brave warrior



সল্যুশন্সঃ
#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;
}

আলোচনাঃ
প্রবলেম ভালো মত পড়লে সল্যুশন একাই মাথায় চলে আসে। শাহরিয়ার স্যারের প্রবলেম বলে কথা। আমি কিন্তু হালি খানেক WA খেয়েছি :D

Comments

Popular posts from this blog

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1293. Eniya

Solution - Timus Problem 1409. Two Gangsters