f(N)=1^12^2…(N-1)^(N-1)N^N;
f(5)=1^12^23^34^4*5^5=86400000.for N=5 this is too big,so how can i compute for N<=10^5.Is there any efficient algorithm for that.I have managed to get for small N.can any one hint me for such an algorithm .thanks in advance.
Try it yourself…or wait for the contest to end…you cannot ask for hints related to problems of ongoing contests!!!
1 Like