16th Nov 2020, 5:00 AM
Md Shahriar Rahman
Md Shahriar Rahman - avatar
10 Respuestas
+ 16
Your code works perfectly as your desired output..
16th Nov 2020, 5:02 AM
Aditya
Aditya - avatar
+ 15
Ohh for hidden inputs.. then some corner cases aren't getting satisfied. Try by adding if case for negative inputs
16th Nov 2020, 5:12 AM
Aditya
Aditya - avatar
+ 2
https://code.sololearn.com/caTl9WodWe8O/?ref=app problem in negative input try this
16th Nov 2020, 5:12 AM
Prathvi
Prathvi - avatar
+ 2
For n=1002003 it outputs 1,2,3 For n=1000000 it outputs 1 You should treat the first triple separately (like you do now), and always print three digits of the next triples (with printf("%03d", a))
16th Nov 2020, 6:24 AM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar
+ 1
EnCoDeR thanks for so quick response! Yes it works, but the problem is something more than that so to speak
16th Nov 2020, 5:09 AM
Md Shahriar Rahman
Md Shahriar Rahman - avatar
+ 1
Actually i am supposed to submit this to a website, but that website says this is wrong, for some hidden inputs
16th Nov 2020, 5:10 AM
Md Shahriar Rahman
Md Shahriar Rahman - avatar
+ 1
EnCoDeR i wanted the code to reprompt me when i give aka string as input (i used: hello), but it didn't. Is it somehow linked?
16th Nov 2020, 5:18 AM
Md Shahriar Rahman
Md Shahriar Rahman - avatar
+ 1
Prathvi thanks a lot for the great missing point 😅. But however, i am bound to give an input n, 0 =< n < 200000000; So that's maybe not the case here
16th Nov 2020, 5:36 AM
Md Shahriar Rahman
Md Shahriar Rahman - avatar
+ 1
Your welcome🤗
16th Nov 2020, 5:41 AM
Prathvi
Prathvi - avatar