479D - Long Jumps, 480B - Long Jumps It , or . If we can already measure both x and y, output . Then try to measure both x and y by adding one more mark. If it was not successful, print two marks: one at x, other at y. So, how to check ? Consider all…