10856 - Recover Factorial

All about problems in Volume 108. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

N@$!M
New poster
Posts: 10
Joined: Wed Jan 10, 2007 7:26 pm

W. A. 10856

Post by N@$!M »

I have tried the I/Os of the Board. Those are all OK.
But I get WA.
"I AM NOT SURE WHETHER I SHOULD BE CONFUSED OR NOT..."
TARIQ M NASIM
CSE 03/04 Batch, SUST, Sylhet- 3114.
==>Software Engineer, Structured Data Systems Limited,Dhaka.
Bangladesh.

e-Mail Address:
tariqmnasim@gmail.com
faiem
New poster
Posts: 14
Joined: Fri Aug 13, 2010 12:22 pm

Re: 10856 - Recover Factorial

Post by faiem »

On this problem Read this line Carefully to avoid WA.
"Factorial numbers are expressible as the multiplication of zero or more prime numbers."

Faiem Rahman
MBSTU,Bangladesh.
Shafaet_du
Experienced poster
Posts: 147
Joined: Mon Jun 07, 2010 11:43 am
Location: University Of Dhaka,Bangladesh
Contact:

Re: 10856 - Recover Factorial

Post by Shafaet_du »

Some cases:

Code: Select all

0
1
2
22
100
10000
10000001
100
65767
435345
out:

Code: Select all

Case 1: 0!
Case 2: 2!
Case 3: 3!
Case 4: 14!
Case 5: Not possible.
Case 6: Not possible.
Case 7: 2703663!
Case 8: Not possible.
Case 9: 20071!
Case 10: 125934!
Thanks to MAP for explaining the problem. It was a nice thing to learn :) :).
Post Reply

Return to “Volume 108 (10800-10899)”