+ 1
The snails
This code gives 2 right test cases and when i change the day from 0 to 1 the other three test cases came right and the 2 first cases came wrong. I'm little confused can you help please? function main() { var depth = parseInt(readLine(), 10); //your code goes here day=0; height=5; while (height<=depth){ day++; height+=5; } console.log(day) }
1 Odpowiedź
0
Read the description once again...
It's missing a last 2 steps...
https://www.sololearn.com/discuss/2615972/?ref=app
https://www.sololearn.com/discuss/2754126/?ref=app
https://www.sololearn.com/discuss/2618113/?ref=app
https://www.sololearn.com/discuss/2684031/?ref=app
https://www.sololearn.com/discuss/2919675/?ref=app
https://www.sololearn.com/discuss/2904293/?ref=app
https://www.sololearn.com/discuss/2624694/?ref=app