|
|
вернуться в форумwhat to do when the number of '!' is larger then n? Послано Quant 11 май 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? Послано Izverg 25 окт 2007 10:26 Just Fuck up and write 'N' Re: what to do when the number of '!' is larger then n? Послано OZone3 22 июн 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? Послано SKYDOS 27 июл 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 :-) |
|
|