https://www.codechef.com/viewsolution/27749411
i a newbie here at codechef.when submitting this code it shows an WA.
But works fine in my geany ide and codechefs custom inputs
please help me!.
how to get an a correct answer?what am i doing wrong?
https://www.codechef.com/viewsolution/27749411
i a newbie here at codechef.when submitting this code it shows an WA.
But works fine in my geany ide and codechefs custom inputs
please help me!.
how to get an a correct answer?what am i doing wrong?
Hard to say, without a link to your code (that isn’t one :))
I’m assuming you’re talking about this submission? If so, see this thread for yesterday:
yes this is the solution that made by another guy he used int_cpp and boost header files he was getting a correct answer.
but as i dont know about all that Int_cpp and boost header files i just edited his code but again it doesnt worked
Hey bro!
i also attempted this question and got the wrong answer.
the reason behind is that this is that the algorithm used here is ok for small numbers but value of n is upto 100.
and 100! is about
93, 326, 215, 443, 944, 152, 681, 699, 238, 856, 266, 700, 490, 715, 968, 264, 381, 621, 468, 592, 963, 895, 217, 599, 993, 229, 915, 608, 941, 463, 976, 156, 518, 286, 253, 697, 920, 827, 223, 758, 251, 185, 210, 916, 864, 000, 000, 000, 000, 000, 000, 000, 000
which is out of scope for any data type.
you got write answer in your compiler because you might entered small numbers.
Try inputting 100
new algorithms available on google.
Thank you bro!!
thanks for putting time to clearing my doubt.
Thank you bro!!
thanks for clearing my doubt
i m sorry that i didnt put a link to that solution but i edited it now