i didnt get the answer right …but i couldnt find the editorial either. so could you guys pls tell me where i can find the editorial for this question and for other questions in the practice section as well
@imcode : If this is a contest problem then you can find its editorial from :
If its not a previous contest problem but simply added from somewhere or by code chef people themselves , then it may not have an editorial ( there are problems like that in practice section )
For this one the author is @admin , so it seems it might not be contest problem .
@imcode: you can take acount of factors 10 present in the number while solving trailing zeros problem.
ex. 5=5 *4 * 3 * 2 * 1
5 * 2=10 so there is 1 no. of trailing 0 in 5! which is true.
lly, 10=10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1
it has 5 * 2 as well as 10 so there are 2 no. of trailing 0 in 10! which is true.
and so on…
or else you can take the help here feel free to ask if you don’t understand any part of the program.