JAlgoArena icon indicating copy to clipboard operation
JAlgoArena copied to clipboard

Wrong testcases for 'Two Firends'

Open tym32167 opened this issue 6 years ago • 1 comments

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,

image

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");

image

Same question here.

tym32167 avatar Oct 12 '18 12:10 tym32167

I submitted my code (which not passed on JAlgo) to codeforces - full solution :)

tym32167 avatar Oct 15 '18 13:10 tym32167