Wizards' Duel

Harry Potter and He-Who-Must-Not-Be-Named engaged in a fight to the death once again. This time they are located at opposite ends of the corridor of length \(200\). Two opponents simultaneously charge a deadly spell in the enemy. We know that the impulse of Harry's magic spell flies at a speed of \(77\) units per second, and the impulse of You-Know-Who's magic spell flies at a speed of \(33\) units per second.

The impulses are moving through the corridor toward each other, and at the time of the collision they turn round and fly back to those who cast them without changing their original speeds. Then, as soon as the impulse gets back to it's caster, the wizard reflects it and sends again towards the enemy, without changing the original speed of the impulse.

Since Harry has perfectly mastered the basics of magic, he knows that after the third collision both impulses will disappear, and a powerful explosion will occur exactly in the place of their collision.

Calculate the distance from his position to the place of the second meeting of the spell impulses, provided that the opponents do not change positions during the whole fight.

Source : Problem A , Codeforces Round #327 (Div. 2) (Modified)


Problem Loading...

Note Loading...

Set Loading...