F7

This problem has been modified to allow for subtask grading.

Subtask 1 (40%): 3 <= N <= 100

Subtask 2 (60%): No additional constraints

Subtask 3 (0%): Sample Testcases


Time Limit: 1 Seconds
Memory Limit: 256MB
Your best score: 0
Source: COCI 2012/2013

Subtask Score
1 40
2 60
3 0