How did you calculate line-point distance?
I tried it on my own (using Heron's formula, and v = 2 * P / |AB|), but i get WA for all (even for test case)
Then I used the code from topcoder tutorial (using dot and cross product of vectors), and test case is correct, but again, everything else is WA....
I tried it on my own (using Heron's formula, and v = 2 * P / |AB|), but i get WA for all (even for test case)
Then I used the code from topcoder tutorial (using dot and cross product of vectors), and test case is correct, but again, everything else is WA....