+ 5

Why my code work on code block but not on code playground. What code should i modify? Do i make mistake.

this is my code https://code.sololearn.com/c4Tae27x774D/?ref=app

19th Feb 2017, 3:35 PM
Agus Mei
Agus Mei - avatar
2 Answers
+ 2
It worked for me, I think. I just had to anticipate all inputs the code requires before running it, because of the weird way Sololearn deals with multiple inputs. So I entered 1 2 10 N and bought two pencils for $2, and got $8 as change.
19th Feb 2017, 3:54 PM
Rodrigo
Rodrigo - avatar
+ 5
thanks. i'll give comment in my code about your sugestion so i will remember it.
19th Feb 2017, 3:58 PM
Agus Mei
Agus Mei - avatar