My issue
I don’t know why my code is not submitted, it is showing wrong answer but my testcases are executed correctly.
My code
#include <iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
int Testcase,AirLine,Pass;
cin>>Testcase;
for(int i=0; i<Testcase; i++){
cin>>AirLine>>Pass;
float res = ceil((double)Pass/100);
if(AirLine>=res){
cout<<0;
}
else if(AirLine<res){
// res=ceil(res);
cout<<(res-AirLine);
cout<<endl;
}
}
return 0;
}
Problem Link: Airlines Practice Coding Problem - CodeChef