Your Solution
Write your code below. Use "Run Tests" to test against sample cases.
Loading editor...
Loading...
How It Works
- Run Tests - Test your code against sample test cases (no login required)
- Submit - Submit for full grading against all hidden test cases (login required)
- Time limit: 5 seconds per test case
- Make sure your output format matches exactly
Sign in to submit for full grading against hidden test cases.