|
|
Pls help me out. I keep getting WA16. Use eps = 1e-10 when checking that the points of one triangle are inside the other triangle. 1000 1000 2 1000 1000 1 NO Are you sure? Can you explain, why? Yeah exactly why NO? If you put them as two triangles with two equal sides with 1000 mm long then the answer will be YES. And the bases should be 2 and 1. ans: NO [height of postcard] sqrt(999999.75) > [height of envelope] sqrt(999999) with the bases 1 and 2. Edited by author 14.08.2011 02:04 Edited by author 14.08.2011 02:04 Edited by author 14.08.2011 02:06 3 4 5 2.7784887979 3.6878177829 4.2 ans: YES This test is incorrect, sides of triangles must be integer numbers. Edited by author 16.08.2011 14:59 Yes. But it checks the case when the edges don't have to be aligned at a common vertex instead centrally. Edited by author 16.08.2011 15:35 Can you help me with WA16? Edited by author 13.11.2007 12:13 Try this: 1000 510 510 900 900 1 Ans: YES PS: Thanks for you code =) It helped me to get AC =) First I tried to put the second triangle to the bottom side of the first triangle ((3!)^2 ways), but it gets WA16. I don't know, why. Maybe, it was the problem with precision. Next I combined my solution and your and get AC =) Алексей мой код дал 1000 510 510 900 900 1
ответ: "NO" Я решил задач из высати. Я думую ещё условия ест.Помоги если сможис. No, the answer is "YES". Сорри, но мне это по англицки просто не сформулировать. Берешь "открытку" и кладешь горизонтально стороной 900 на основание 1000 "конверта". Нарисуй на листочке, все сойдется. Edited by author 11.10.2007 13:38 Edited by author 13.11.2007 12:13 And what answer for this test? My algo YES. But I've got wa#30 :( give some tests, please! all tests from here i passed. 5 5 5 2 5.3 5.3 ans: NO Edited by author 16.08.2011 13:40 Edited by author 16.08.2011 13:42 I am get WA on test 6, please give me test 6 please. Что там в этом 6-ом тесте?! I have wa 12. my algo is simple. i compare the heights and bases of triangles and print the answer. base is the side with max long. my prog passes all tests that are here as well. can you help me? where is my bug? Please add this test: 3 3 2 2 2 2 the ans is YES while my prev Accept program got No.Now I fix the bug but I'm sure that several Accepted author will lost AC Some new tests have been added. 5 authors lost AC. Sample input #2 (as well as test #2) has been modified, now all triangles in all tests have positive area. Can this problem be solved with float arithmetics? Or must I use long integer arithmetic? Yes, this problem can be solved with float arithmetics even without epsilon-precision comparison (but it only because tests at present is enough easy) New tests has been added to the problem. 5 authors have lost AC. Edited by author 06.10.2007 17:06 Why I have lost (+) ??? My status was Accepted, but now is WA??? Is the reason sqrt(-)? Why was my first message deleted? Was the reason using russian language or no? Edited by author 06.10.2007 17:48 Edited by author 06.10.2007 17:49 200 200 200 210 100 110 It is only 1 test with singular triangle? Now I receive AC with code ... if (tr.m[1]+tr.m[2] == tr.m[0]) { cout << "NO" << endl; return 0;} ... Very strange test. Edited by author 10.10.2007 11:17 100 100 100 100 100 100 ? 200 100 100 100 50 50 ? |
|
|