I am getting a wrong answer when submitted but I am getting correct output

Here’s my solution https://www.codechef.com/viewsolution/53893441

I get “Access Denied”. Is this from a currently-running Contest?

@ssjgz I think this is probably the Getting started practice contest, and in particular the Triangle With Angle problem, based on recent submissions by this user.

So yes, puzzles under contest restrictions, but not a real “contested” contest.

In this case, if you are getting good results for “ordinary” input, there is an edge case to consider:

0 180 0

should give


since the area is 0.

1 Like