|
|
Does anyone know the input for test 7? If you use fmod(...,360), remember that for negative input you get negative output. Could someone give me some tests on test10? 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 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 Test 15 was incorrect, now it is fixed. 5 authors got AC. 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. 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] † [2] // Problem 1341. Device 10 Jan 2006 01:19 [deleted] Edited by author 13.01.2006 03:11 [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 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. #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; } |
|
|