11676 - Deadly Attack

All about problems in Volume 116. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
maurizzzio
New poster
Posts: 5
Joined: Wed Jul 20, 2011 9:02 pm

11676 - Deadly Attack

Post by maurizzzio »

Anyone who has solved this problem has critical input?? i don't catch my mistake, here's my algo:
1. With the direction angle and the spread get the two lines.
2. Test with cross product where they are from the circle
3. If they cover the entire circle return pi * r^2
4. if they cover nothing from the circle return 0
5. At least one of them intersects the circle so find the areas using line circle intersection
Need critical input please, thanks :)
Post Reply

Return to “Volume 116 (11600-11699)”