Announcement

There has been another issue with tests for problem M, time limit raised to 3 seconds, and solutions have been rejudged. We apologize about that.

Announcement

There was a problem with the tests for problem M - Powerful Inversions, solutions are being rejudged.

Time Limit: 3000ms
Memory Limit: 256MB
Powerful Inversions