PDA

View Full Version : Игор



StringTheoryPracticist
04-28-2017, 20:06
Igor the analyst fell asleep on the work and had a strange dream. In the dream his desk was crowded with computer mice, so he bought a mousetrap to catch them.

The desk can be considered as an infinite plane, then the mousetrap is a rectangle which sides are parallel to (...)

Igor wants to catch all mice. Igor has analysed their behavior and discovered that each mouse is moving along a straight line with constant speed, the speed of the i-th mouse is equal to (...) The mousetrap is open initially so that the mice are able to move freely on the desk. Igor can close the mousetrap at any moment catching all the mice that are strictly inside the mousetrap.

Igor works a lot, so he is busy in the dream as well, and he asks you to write a program that by given (...) determines the earliest time moment in which he is able to catch all the mice.

Описанието :D източник http://codeforces.com/contest/793/problem/C

StringTheoryPracticist
05-06-2017, 17:59
Решението ще е по-чисто ако абстрахираш от координатът (x или y), защото в задачата x & y са симетрични и иначе ще пишеш два пъти кода, по веднъж на координат. Подобно важи за посоката.

Иначе го пуснах защото описанието е яко :D
Бях решил да си представя живи мишки вместо компютърни - заданието си остава математически същото. Но в задачите на тези хора, след като им прочетеш описанието, това което ти се формира в главата замества тяхната картинка и няма нищо общо (май умишлено го правят така).