ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1083. Factorials!!!

what to do when the number of '!' is larger then n?
Posted by Quant 11 May 2007 21:36
what to do when the number of '!' is larger then n?
for example 3 !!!!!!
Re: what to do when the number of '!' is larger then n?
Posted by Izverg 25 Oct 2007 10:26
Just Fuck up and write 'N'
Re: what to do when the number of '!' is larger then n?
Posted by OZone3 22 Jun 2009 23:38
It could be 1. Which is more realistic than, say, 'N'
Re: what to do when the number of '!' is larger then n?
Posted by SKYDOS 27 Jul 2009 13:37
1) 5 !!!!!! - 5
2) 2 !!!! - 2

so...output just N
Re: what to do when the number of '!' is larger then n?
Posted by Azad Salam 1 May 2010 17:43
3 !!!!!

here n=3 and k=5 (>3)
now (3 mod 5) = 3
so answer should be n * (n-k) *(n-2k)....(n mod k) = 3 :-)