i=1;k;n;main(j){for(gets(&n);i%j+k%j?j--:k++<(i/j>n-48||printf("%d/%d\n",k/j,i/j),j=i=840););}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page