|
|
Show all threads Hide all threads Show all messages Hide all messages | Hint | Конобейцев Иван Олегович | 2148. Insane Shot | 26 Sep 2022 17:54 | 1 | Hint Конобейцев Иван Олегович 26 Sep 2022 17:54 The only formulas you need is a distance between two points to find the answer and a distance between point and a line to check if answer exists | Give me test 17 please | betty73 | 2148. Insane Shot | 18 Jul 2021 09:36 | 1 | | C# hint | Zergatul | 2148. Insane Shot | 19 Nov 2020 04:59 | 1 | Don't use double or you will suck hard. My formulas are definitely correct (because I got AC), but with double and framework functions like Math.Sqrt I was getting very big inaccuracies (about FEW degrees for angles between tangent and shots). Then I switched to BigInteger and got AC immediately. Edited by author 19.11.2020 04:59 | WA8? | Zergatul | 2148. Insane Shot | 23 Oct 2020 13:36 | 2 | WA8? Zergatul 15 Oct 2020 03:33 I am checking possibility of shot, I am checking edge case (when shot just touches the tank). My geometry calculations use epsilon (also tried to adjust epsilon, didn't help). Tried to output results with 7 decimals. I am using double. What else I could miss? Re: WA8? Kairom `Ekexity 💻 23 Oct 2020 13:36 Are you sure that the size of your epsilon is enough? The angle might be too small. Place the tank and players on opposite sides of the map, and check your solution. Edited by author 23.10.2020 13:36 | WA17 hint | D4nick | 2148. Insane Shot | 18 Sep 2020 20:56 | 1 | use double for ALL variables | WA 9 hint | D4nick | 2148. Insane Shot | 18 Sep 2020 17:44 | 1 | Test 9 is about the possibility of the shoot. For example I just changed < on <=: if (4 * (pow(x1 - xc, 2) + pow(y1 - yc, 2) - pow(r, 2)) <= pow(x2 - x1, 2) + pow(y2 - y1, 2)) { | #WA 3 | Ivan | 2148. Insane Shot | 30 Jul 2020 14:25 | 2 | #WA 3 Ivan 28 Jun 2020 20:06 I calculated two points of intersection from line that go through two points((x_mid, y_mid) and (x_circle,y_circle)) and then picked nearest two given two points.But this gives me WA3. What should i do? Re: #WA 3 Kairom `Ekexity 💻 30 Jul 2020 14:25 You need to check the possibility of a shot. The enemy may be out of your sight. | ХИНТ | Toshpulatov (MSU Tashkent) | 2148. Insane Shot | 14 Apr 2020 14:45 | 2 | ХИНТ Toshpulatov (MSU Tashkent) 16 Feb 2020 19:42 Подумайте о пересечение прямой из данных двух точек с окружностью а потом о треугольниках Edited by author 16.02.2020 19:45 Re: ХИНТ Kairom `Ekexity 💻 14 Apr 2020 14:45 И ни в коем случае не думайте о зебрах | Agree? Found out the game? | Kirom `Ekexity [SESC17]💻 | 2148. Insane Shot | 28 Mar 2020 14:47 | 2 | | WA34 on Python 3 | Moshkov Danil | 2148. Insane Shot | 24 Dec 2019 18:39 | 2 | Somebody had this test case? Try this tests: 0 0 5 -5 100 -5 -100 ans: No way 0 0 5 5 100 5 -100 ans: No way 0 0 100 5 100 -5 100 ans: No way 0 0 100 5 -100 -5 -100 ans: No way |
|
|
|