My issue
why is my code not giving correct answer? Which test cases would fail for this code?
My code
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int quan;
float p;
cin>>quan>>p;
if(quan>1000) cout<<quan*p*0.9<<endl;
else cout<<quan*p<<endl;
}
return 0;
}
Problem Link: FLOW009 Problem - CodeChef