JAlgoArena
JAlgoArena copied to clipboard
Wrong testcases for 'Two Firends'
There is smthg wrong with testcases for Two Friends
problem.
Sample of test case;
TEST(new int[][]{new int[]{0, 0}, new int[]{0, 0}, new int[]{4, 0}, new int[]{4, 3}}, "1E-05");
Its looks like that,
So, from my point of view answer should be 0. Why testcase returning 0.00001? Moreover, why system shows 0 as wrong answer?
Another example:
TEST(new int[][]{new int[]{0, 0}, new int[]{0, 0}, new int[]{100, 100}, new int[]{100, 0}}, "1E-05");
Same question here.
I submitted my code (which not passed on JAlgo) to codeforces - full solution :)