|
|
back to boardShow all messages Hide all messageswhat to do when the number of '!' is larger then n? for example 3 !!!!!! Just Fuck up and write 'N' It could be 1. Which is more realistic than, say, 'N' 1) 5 !!!!!! - 5 2) 2 !!!! - 2 so...output just 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 :-) |
|
|