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

24th Dec 2019, 5:13 AM
Juan Pablo Vila
Juan Pablo Vila - avatar
9 Answers
+ 3
Socheat Sorng https://code.sololearn.com/c0TRDFoa8t17/?ref=app 10 months late, but maybe someone needs it
1st Mar 2021, 5:58 AM
Javier Alberto Benitez
Javier Alberto Benitez - avatar
0
I'm not sure what you mean by "the logic is wrong in second". Which logic? Could you please elaborate? Thanks.
24th Dec 2019, 5:38 AM
r1c5
r1c5 - avatar
0
thanks! it was about solution in second test, My program pass 1 but won't in 2.
24th Dec 2019, 8:16 AM
Juan Pablo Vila
Juan Pablo Vila - avatar
0
solved I hadn't consider returning time when people in line were more than 20. Thanks! Sololearn is the Best!
24th Dec 2019, 12:38 PM
Juan Pablo Vila
Juan Pablo Vila - avatar
0
Juan Pablo Vila can you give me a hint please
11th Apr 2020, 2:50 AM
Socheat Sorng
Socheat Sorng - avatar
0
Socheat Sorng remember returning time
11th Apr 2020, 2:58 AM
Juan Pablo Vila
Juan Pablo Vila - avatar
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.
11th Apr 2020, 3:36 AM
Socheat Sorng
Socheat Sorng - avatar
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))
2nd Apr 2022, 11:02 AM
David Lau
David Lau - avatar
0
people = int(input()) x = (people // 20) * 2 * 10 + 10 print(x)
2nd Jan 2023, 10:33 PM
JĂșlia CiesarikovĂĄ
JĂșlia CiesarikovĂĄ - avatar