ORAC
Learn
Problems
Competitions
Leaderboards
...
Log In
Register
Purchasing Paint
Statement
Submissions
Hall of Fame
Report Issue
Time Limit
Memory Limit
Input File
Output File
1.0 second
512.0 MiB
Standard Input
Standard Output
Log in
to submit!
If the statement isn't loading correctly, you can
open it in a new tab
.
Problem info
Subtask 1 (10 points) has 17 cases.
Subtask 2 (20 points) has 16 cases.
Subtask 3 (10 points) has 24 cases.
Subtask 4 (30 points) has 17 cases.
Subtask 5 (15 points) has 31 cases.
Subtask 6 (15 points) has 89 cases.