I think they form a 90 degree, got AC is because the judge haven't such test cases.But in the first polygon, point 1, point 2 and the center don't form a triangle with 90 degrees(you can see that in the picture.)
I change my code with reject and accept 90 degrees both get AC