Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: Codeforces 981G

Subtask Score
1 0
2 10
3 30
4 20
5 40