PATHS
Below given 114 byte c code is for ways spoj or paths spoj.
Here first time i was wondering that this code worked in c . I was thinking this will even not pass compilation but it was running.
f(j){return j<2?2:f(j-1)*(4*j-2)/j;}l="%d\n";main(t,m){for(scanf(l,&t);t--;scanf(l,&m),printf(l,f(m)));return 0;}
it did not compile
ReplyDelete