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
Post a Comment