Subtask 1: N<=2 (30 points)
Subtask 2: No additional constraint (70 points)
You're not logged in! Click here to login