Benji loves his money very much; however, he is also obsessed with wasting money when he sees discounts. What a tragedy!
Benji wants you to help him determine if an item is worth it to purchase.
He found
Input Specification
The first line of the input will contain two integers
The next
Output Specification
Output an integer
Sample Input
5 7
100 90
100 93
100 95
10 10
10 40
Sample Output
3
Explanation
Benji can buy the second, third, and fifth item. After discount, the first item cost
Comments
Can someone help with my code. On test case #5 it gives the wrong answer but I don't understand why.
Floats don't go to as many decimal places as doubles, causing you to basically get a rounding error. Just replace "float" with "double" in your code and you pass.
The Steam Summer Sale has started, rip Benji
XD