My issue
give me suggetion to solve this
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin >> t;
while(t--)
{
int a, b;
cin >> a >> b;
double dis1 = 100 - (100*((double) a / 100));
double dis2 = 200 - (200*((double) b / 100));
if(dis1 < dis2) cout << "FIRST" << endl;
else if(dis1 > dis2) cout << "SECOND" << endl;
else cout << "BOTH" << endl;
}
return 0;
}
Learning course: Number theory
Problem Link: Better Deal Practice Problem in Introduction to Number theory - CodeChef