Skip to main content
added 1 character in body
Source Link
jdt
  • 4.5k
  • 1
  • 14
  • 18

C (clang), 8584 bytes

*t,m,v,i;f(*r,a,b,c,d){r&&(r?t=r,i=m=0);v=a:0;v=a/c-b/d;v<m||(m=v,*t=i);i++<4&&f(0,c,a,d,b);}

Try it online!Try it online!

C (clang), 85 bytes

*t,m,v,i;f(*r,a,b,c,d){r&&(t=r,i=m=0);v=a/c-b/d;v<m||(m=v,*t=i);i++<4&&f(0,c,a,d,b);}

Try it online!

C (clang), 84 bytes

*t,m,v,i;f(*r,a,b,c,d){r?t=r,i=m=0:0;v=a/c-b/d;v<m||(m=v,*t=i);i++<4&&f(0,c,a,d,b);}

Try it online!

Post Undeleted by jdt
Post Deleted by jdt
Post Undeleted by jdt
Post Deleted by jdt
Source Link
jdt
  • 4.5k
  • 1
  • 14
  • 18

C (clang), 85 bytes

*t,m,v,i;f(*r,a,b,c,d){r&&(t=r,i=m=0);v=a/c-b/d;v<m||(m=v,*t=i);i++<4&&f(0,c,a,d,b);}

Try it online!