ORAC
Learn
Problems
Competitions
Leaderboards
...
Log In
Register
Pair Programming
Statement
Submissions
Hall of Fame
Report Issue
Time Limit
Memory Limit
Input File
Output File
5 seconds
512 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 (20 points) has 10 cases.
Subtask 2 (20 points) has 30 cases.
Subtask 3 (20 points) has 49 cases.
Subtask 4 (40 points) has 72 cases.
This problem has a checker