0
I'm solving Land Ho! but won't get to complete all test, could someone confirm the tests? I think the logic is wrong in second
9 Réponses
+ 3
Socheat Sorng https://code.sololearn.com/c0TRDFoa8t17/?ref=app
10 months late, but maybe someone needs it
0
I'm not sure what you mean by "the logic is wrong in second". Which logic? Could you please elaborate? Thanks.
0
thanks! it was about solution in second test, My program pass 1 but won't in 2.
0
solved I hadn't consider returning time when people in line were more than 20. Thanks! Sololearn is the Best!
0
Juan Pablo Vila can you give me a hint please
0
Socheat Sorng remember returning time
0
Juan Pablo Vila I know It takes 10 minutes to go to the beach and 10minutes to return. But I don't onow to code them.
0
this is my solution:
people_ahead = int(input())
waiting_time = 10
while people_ahead >= 20:
waiting_time += 20
people_ahead -= 20
print(int(waiting_time))
0
people = int(input())
x = (people // 20) * 2 * 10 + 10
print(x)