{s=$3 for(i=$2*s-$2+$1;$1*s<i;i-=$2-$1){d=s while(i%d+s%d)d-- r=(s-d?i/d"/"s/d:i/d)" "r}print$1,r$2}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page