0
How can I improve my code?
10 Réponses
+ 16
Your code works perfectly as your desired output..
+ 15
Ohh for hidden inputs.. then some corner cases aren't getting satisfied.
Try by adding if case for negative inputs
+ 2
https://code.sololearn.com/caTl9WodWe8O/?ref=app
problem in negative input
try this
+ 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))
+ 1
EnCoDeR thanks for so quick response!
Yes it works, but the problem is something more than that so to speak
+ 1
Actually i am supposed to submit this to a website, but that website says this is wrong, for some hidden inputs
+ 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?
+ 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
+ 1
Your welcome🤗