Darts
시간 제한1초메모리 제한2048 MB
평면 위 타원 모양 과녁과 여러 시작점에서 나아가는 직선이 주어질 때, 과녁에 맞는 다트의 개수를 센다.
문제
You have joined a project called 'Flying Projectile Coding', which attempts to create a smart machine learning AI that will throw darts at a slightly modified dart board. Before the live testing of this AI, you have decided to train it in a simulation, because that is way faster and cheaper.
In this project, you are tasked with assessing the AI's performance. Since it is still in the early stages of its development, you are only interested in whether it hit the board or not. Also, for now, you just assume that gravity is negligible, so darts fly in straight lines.

The board
입력
- One line with an integer: : the number of darts that have been thrown.
- Two lines with three floating-point numbers each: and . The dart board is mounted at and is shaped like an ellipse with perpendicular axes and .
- lines with six floating-point numbers each: and . This line indicates that a dart is thrown from position in direction .
출력
The number of darts that hit the board.