Announcement

There was an issue with problem I (Omar's Gifts) that gave a WA verdict to correct solutions. The solutions have been rejudged now, so check if your solution is now accepted before resubmitting.

Time Limit: 1000ms
Memory Limit: 256MB
I - Omar's Gifts