### DilshodbekX's blog

By DilshodbekX, 3 weeks ago,

Hello!

Uzbekistan IOI 2024 Team Selection Test took place last month, and we have uploaded its problems to Codeforces Gym.

• Two contests with 3 problems each

• Duration 5 hours

• IOI format (problems have subtasks)

• Statements in English

• Problems are NOT ordered by difficulty

• Link to the contests — Day 1 and Day 2.

All tasks were prepared by DilshodbekX, MDSPro, and drdilyor. Note that in the original competition, we used CMS and graders, so if we have made a mistake while exporting them to Polygon, please let us know.

We hope you enjoy the problems!

• +72

 » 3 weeks ago, # |   +12 Is there any editorial of problems?
 » 3 weeks ago, # | ← Rev. 7 →   0 In problem 105186A - Kep.uz Arena this code 263109793 got only 22 points(1,2 subtask) but I was waiting for 42 points(1,2,3 subtasks).In 3rd subtask it says time limit exceed on test 39.But it works in ~ O(n^3) where n=(count of D's) max(n)=18.You said you could make mistake while preparing it in polygon system can it be mistake or my code not effectively?
•  » » 3 weeks ago, # ^ |   0 I checked your code and it should get 22 points, not 42. I suggest you to analyze the time complexity of your code.
•  » » » 3 weeks ago, # ^ |   0 Oh yeah there is also a loop from 0 to s.size().Thanks!
 » 3 weeks ago, # |   +11 will there be an editorial?
•  » » 3 weeks ago, # ^ |   +3 Can somebody write editorial for day1 A problem please.I tried to solve it whole day but I couldn't!
•  » » » 3 weeks ago, # ^ |   0 sorry but I haven't solved it yet either. my code only passed subtask 2 worth 8 points.
•  » » » 3 weeks ago, # ^ | ← Rev. 3 →   +5 Since no official editorial has been published i can help you. Hint 1...First try to think what happens if you delete a random W, a random L or random D. Hint 2...It is easy to see that we can delete all L, so we just have an array full of D and W. Now think about when it is good to delete D and when it is good to delete W. SolutionIt is a bad idea to delete W, because in no case it will increase the answer. But it's sometimes good to delete D. I considered some possibilites. Firt we should see that if there are some D in a row either we delete all or none, beacuse if we just delete some it won't increase our answer. But if we have 2 or more D in a row it isn't good to delete all, because if we have $x$ D, we were deleting $x$ point from our answer. But in the best case we will just add 2 point to our solution. (if you dont understand this you can ask me more). So the only case that we have to discuss is if there is just one D after some W and before some W. Now the only important thing is if this will increase our solution. Think about when it will increase the answer.The only thing that is important is if we have at least 2 W before the D and at least 1 W after the D. In this specific case if we delete the D the answer wont be changed, but if we have more than 1 W after the D the answer will be increased....If you have any doubt, or I didn't explain well something, ask me.