Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

#include int v,i,j,k,l,s,a[99]; int main() { for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i], k=i= s*k&&++a[--i]); return 0; }