|
|
back to boardwhat 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? 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 :-) |
|
|