Let the side of the square = s
Let the distance that each runs = x
The first runner runs x and the remaining side of the square = s -x
The second runner runs x
So, since we have a right triangle, the distance between them ^2 can be represented as
d^2 = ( s - x)^2 + x^2
d^2 = x^2 - 2sx + s^2 + x^2
d^2 = 2x^2 - 2sx + s^2 take the derivative of this function and set to 0
4x - 2s = 0
4x = 2s
x = (2/4)s
x = (1/2) s
d^2 = (s -(1/2)s)^2 + (1/2s)^2
d^2 = (1/2s)^2 + (1/2s)^2
d^2 = (2/4)s^2
d^2 = (1/2) s
d = sqrt ( 1/2 s^2) = (1/sqrt 2) s ≈ .707 s
If s = 1, then Bosco's answer is good !!!