+ 2

[Solved] Skee ball case 3 failure in python, can anyone tell me what is case 3 for skee ball?

Please have a look at my python code for skee ball, I don't know what I'm doing wrong here but it always fail at case 3! can anyone give me some suggestions or hints about case 3 or how to filter out nearly equal values? https://code.sololearn.com/cfMzRBlKM4IT/?ref=app Thanks Rishi for correcting me, I didn't payed much attention to this aspect coz it looked same to me (mathematically)😅 . I'm still curious about what's the case 3 is & how exactly my previous approach failed to pass it🤔🧐

9th Nov 2021, 11:13 AM
Webflyer0
Webflyer0 - avatar
2 Respostas
+ 2
I think your calculation is wrong. The first input you get is the number of matches you won and the second input is the price of the gun. For 12 wins, you will get 1 ticket. I guess you didn't understand the question right. The below code is the implementation of my idea, have a look at it https://code.sololearn.com/cVDJO3A2ueRc/?ref=app
9th Nov 2021, 11:51 AM
Rishi
Rishi - avatar
+ 1
https://www.sololearn.com/Discuss/2753963/?ref=app
9th Nov 2021, 11:25 AM
Simba
Simba - avatar