I have tried the I/Os of the Board. Those are all OK.
But I get WA.
10856 - Recover Factorial
Moderator: Board moderators
W. A. 10856
"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
TARIQ M NASIM
CSE 03/04 Batch, SUST, Sylhet- 3114.
==>Software Engineer, Structured Data Systems Limited,Dhaka.
Bangladesh.
e-Mail Address:
tariqmnasim@gmail.com
Re: 10856 - Recover Factorial
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.
"Factorial numbers are expressible as the multiplication of zero or more prime numbers."
Faiem Rahman
MBSTU,Bangladesh.
-
- Experienced poster
- Posts: 147
- Joined: Mon Jun 07, 2010 11:43 am
- Location: University Of Dhaka,Bangladesh
- Contact:
Re: 10856 - Recover Factorial
Some cases:
out:
Thanks to MAP for explaining the problem. It was a nice thing to learn
.
Code: Select all
0
1
2
22
100
10000
10000001
100
65767
435345
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!
![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
UVa stats: http://felix-halim.net/uva/hunting.php?id=63448
My blog on programming: http://www.shafaetsplanet.com/planetcoding/
My blog on programming: http://www.shafaetsplanet.com/planetcoding/