+ 1
Fruit bowl problem
fruit = int(input()) x=fruit if x%2==0: y=int((x/2)//3) print(y) else: print(0) I tried this but only first 2 test cases I can see are right and the remaining 3 locked cases I can't see are wrong. Please help me with this where I'd gone wrong.
5 ответов
+ 4
print(int(input())// 6)
Simply write this
OR your edited code:
fruit = int(input())
y=int((fruit/2)//3)
print(y)
+ 2
Then, is an even or odd number of total fruit not a problem?
+ 1
It's written that they are even in numbers 🙄.
+ 1
Aww...Thanks a lot!
0
fruit = int(input())
def applepie (fruit):
res = (fruit/2)//3
if fruit <=4:
return (0)
else:
return int(res)
print(applepie (fruit))