Show all threads Hide all threads Show all messages Hide all messages |
WA on Test 7 | MirceaS | 1341. Device | 11 Apr 2018 02:08 | 2 |
Does anyone know the input for test 7? If you use fmod(...,360), remember that for negative input you get negative output. |
WA on test10 plz help | lizhuoran | 1341. Device | 25 Nov 2015 05:59 | 1 |
Could someone give me some tests on test10? |
Test 15, something strange | diver_ru (Fishburg SAAT) | 1341. Device | 3 Mar 2011 23:15 | 2 |
I send program with such procedure: void moveNorth(double dist) { w += dist / rEarth * 180 / pi; if (w > 91.0) n = (n - n) / n; } And got crash 15, but when i send void moveNorth(double dist) { w += dist / rEarth * 180 / pi; } i got accepted. So, i think device can reach north pole with test 15 input data, but it's impossible. In this test the device flies too close to north pole. I got AC instead WA#15 when I changed PI from 3.14159265 to 3.141592653589. And I searched for a numerical mistake for 1 hour :) Ha-ha! Edited by author 03.03.2011 23:16 |
WA on test 3 ! | Alexandru Popa | 1341. Device | 18 Jul 2010 12:47 | 3 |
Can anybody help me with this test, please ? 56 179 1111 Understand What Wrong? Coordinat's must be at [-180..180] Edited by author 18.07.2010 12:52 |
whats wrong with test 15? | Alias (Alexander Prudaev) | 1341. Device | 12 Oct 2007 00:24 | 2 |
Test 15 was incorrect, now it is fixed. 5 authors got AC. |
Test #13 WA | aSSault | 1341. Device | 12 Sep 2007 00:39 | 3 |
Can anybody give me this test ??? In 13th test numbers are delimited by spaces, not linebreaks. This is incorrect test, really... Yes, this test was incorrect, and it is fixed now. Thank you. If you know bugs in the other problems of Timus Online Judge, write about it to acm_support@acm.timus.ru. |
I need help. | ACM.Tolstobrov_Anatoliy[Ivanovo SPU] | 1341. Device | 15 Jan 2006 03:49 | 6 |
I need help. ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 7 Jan 2006 08:20 What Ansewr for this tests. -0.000499 0 10053 0 0 10052 0 180 0 0 -179.9999 0 -0.000 13.948 0.000 -75.408 0.000 180.000 0.000 -180.000 [deleted] Edited by author 13.01.2006 03:19 † ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 10 Jan 2006 01:19 [deleted] Edited by author 13.01.2006 03:11 Now AC ACM.Tolstobrov_Anatoliy[Ivanovo SPU] 12 Jan 2006 10:02 [deleted] :) Formula right But in test 13 L, W, Dist On first line BUT in solution written on first, second, third lines. Edited by author 13.01.2006 03:10 |
Could anyone explain me, can the "Device" reach the Northen Pole? | Pasha | 1341. Device | 25 Jun 2005 17:38 | 2 |
If it can, what will it do after it reached the Nothern Pole? Will it move at the south along diametrically opposite meridian or it will stop? Please, give me a hint, I have Wrong Answer at Test 15. |
This problem's geometry is so obvious - my solution is less than 300 bytes :) (-) | Dmitry 'Diman_YES' Kovalioff | 1341. Device | 11 Jun 2005 22:10 | 2 |
|
Why WA? Source here... (+) | YoD | 1341. Device | 29 May 2005 17:31 | 1 |
#include <stdio.h> #include <math.h> #define r 6400.0 #define PI 3.141592653589 #define EPS 1e-8 void norm(double &s, double &d) { while (s > PI) s -= PI; while (s < -PI) s += PI; while (d > 2*PI) d -= 2*PI; while (d < -2*PI) d += 2*PI; } int main(void) { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); double s0, d0, sq = 0.0; scanf("%lf %lf %lf", &s0, &d0, &sq); s0 = s0*PI/180; d0 = d0*PI/180; s0 += sq/r; norm(s0, d0); d0 += sq/(r*cos(s0)); norm(s0, d0); s0 -= sq/r; norm(s0, d0); d0 -= sq/(r*cos(s0)); norm(s0, d0); printf("%.3lf\n%.3lf\n", s0*180/PI, d0*180/PI); return 0; } |