Привет, Codeforces!
В Jul/14/2026 17:35 (Moscow time) начнётся Codeforces Round 1109 (Div. 3) — очередной Codeforces раунд для третьего дивизиона. В этом раунде будет 7 задач, которые подобраны по сложности так, чтобы составить интересное соревнование для участников с рейтингами до 1600. Однако все желающие, чей рейтинг 1600 и выше могут зарегистрироваться на раунд вне конкурса.
Раунд пройдет по правилам образовательных раундов. Таким образом, во время раунда задачи будут тестироваться на предварительных тестах, а после раунда будет 12-ти часовая фаза открытых взломов, после её завершения все успешные попытки будут перетестированы на успешных взломах. Мы постарались сделать приличные тесты — так же как и вы, мы будем расстроены, если у многих будут падать решения после окончания контеста.
Вам будет предложено 7 задач и 2 часа 15 минут на их решение.
Штраф за неверную попытку в этом раунде будет равняться 10 минутам.
Напоминаем, что в таблицу официальных результатов попадут только достоверные участники третьего дивизиона. Как написано по ссылке — это вынужденная мера для борьбы с неспортивным поведением. Для квалификации в качестве достоверного участника третьего дивизиона надо:
- принять участие не менее чем в пяти рейтинговых раундах (и решить в каждом из них хотя бы одну задачу)
- не иметь в рейтинге точку 1900 или выше.
Независимо от того являетесь вы достоверными участниками третьего дивизиона или нет, если ваш рейтинг менее 1600, то раунд для вас будет рейтинговым.
Задачи были придуманы и подготовлены itz_pabloo.
Также большое спасибо:
MikeMirzayanov за системы Polygon и Codeforces.
Vladosiya за самую лучшую координацию раунда.
k1r1t0, lewc, FairyWinx, zwezdinv за красное тестирование раунда.
Sokol080808, cry, AI-qv4rk, KotlechkovEgor, Fakewave за жёлтое тестирование раунда.
SapeginIgor, dvb1r, VitaliiV, Gutark, feblokas, _liravel_, kaferius_cf за фиолетовое тестирование раунда.
Maria_Chudinova, Yassia, Wileyne, Algolagon, veliak, eyfxrby, sanya37y, opa, Neckt00 за синее тестирование раунда.
misha.arkhipov, s28b_shagabutdinov, Sava_is, nikk128, k_Teleport за бирюзовое тестирование раунда.
sovenok1, HelloFromMars за зеленое тестирование раунда.
mlovbnee за серое тестирование раунда.
Всем удачи!
UPD: Разбор опубликован!









this is the second div3 I've tested, and it's perfect
for Q3 approach is difference of index+1 and number on index should be divisible by x , y , gcd(x,y) if not divisible by any one of them then return NO else return YES is this correct approach
can anyone please share there approach for question number 4
The key observation is to think about the final sign of each element. Traverse from right to left of the array and if that element is present in the second array, we need to check if we want to continue with the sign of previous element or not (if that element is present in second array then we can change its sign without effecting the (i+1)th element right ). Using a dp for that purpose gives O(n) solution.
This is my first post, I am sorry if explanation is not up to the mark :(
went from being called a purple tester to now a blue tester :( round is great tho :3
itz_pabloo orz
Best of luck to all participants !? Hope that the contest will be very interesting!!
i just realized i have to sell 1108 to participate officially in this contest :<
i did it guys!
you dont need to sell to be div3 as long as you're not 1900>
no, that is for trusted participants, not rated participants
Its my first time participating in any contest
Good look!
your name reminds me of JEE times ! hehe
YEAH SAME T_T
GOOD LUCK
great keep going
same
what are the rating points for the contest?
Div 3, Div 4, and Educational rounds all use ICPC scoring, which means position is based on how many problems you solved no matter which ones, with ties broken by how fast and accurately you solved them
Five Hundred Contests.
hey long time since the div 4 has been dropped, when is the next one happening?
aaaaaaaaaaaaaah the dream of every newbie :"
Div. 3 rounds are always a great opportunity to learn. Thanks for organizing this one, and good luck to everyone participating
Div. 3 rounds are always a great opportunity to learn. Thanks for organizing this one, and good luck to everyone participating!
Now I'm green and there's no green testing :)
There were green testers (including me) but they aren't mentioned here yet
Can anyone tell me what is this tester and setter thing.....I am new to cf so :)
The authors of the problems are referred to as the problem setters
The problem testers are the ones who try solving the problems and provide feedback for any required improvements. This is done across multiple user ratings to get an idea of what a participant will experience when solving the problem...
how can one apply to be a tester for a contest? are we to dm the popular setters?
I don't think there's an application process for it. ig it's invite only. So, maybe try forcing one of ur friends to author a round :-)
Hoo..........thanks for the info
Thanks for the contest.
О, еще один контест который сделает меня на шаг ближе к суициду!
Guys, I came here to bless y'all with a meme... but apparently I'm too boomer to figure out how to post a picture.
Anyway, yk what? It's been 1 year and 9 months since I sold my soul to Codeforces.
For anyone wondering what the meme was, here's the image:
https://cdn.phototourl.com/free/2026-07-13-59de4156-eb8f-4c1a-908e-d172af317e59.jpg
skill issue
better than getting hacked/failing sys test :-)
I got hacked in a Div3 D once
yup
First contest!
First contest in which I am going to take part in !
Excited :)
heyy broo good luckkk!!
As an sc3developer, can’t wait to farm rating on this round, and also bees, because there’s so many bees
Is that mean that all problem will be under or equal 1600 ? (please ans)
please suggest me , how i can develop my cp skill . which which algorithm should i know?
It's not about what algorithm you should learn, it's about can you use the things you learened effectively. A CM once told me that two pointers, binary search and DP are the only thing he needs to reach purple. I still don't know how to reach CM tho :sob:
Hello sir thanks for reply!
Would you like to tell me how i can master the dp? I am efeciently working on my cp skill since 6 months. My first target is to become Specialist . Help me please! How many problem should i practice or is there any way to increase my thinking ability ?
.
You are not a tester today. i think it will be less than 0.
Автокомментарий: текст был обновлен пользователем itz_pabloo (предыдущая версия, новая версия, сравнить).
Auto comment: topic has been updated by itz_pabloo (previous revision, new revision, compare).
comedy
Without killer maths/Observation :(
thx for the good round
So grateful to Codeforces Round 1109 (Div. 3) for this round! It was pure joy from start to finish that I really couldn't have asked for a better experience!
This round is more like a Div4 for me
Great problems !
one of the best div3 of this year!
Agreed, the difficulty increase was gradual. Though, I found problem F to be a bit ambiguous especially with the concept of leaf.
I agree. it was a bit confusing, a lot of time went into reading the problem statement again and again
i think E was a bit easier than D
How to solve $$$G$$$?
The statement of F wasn't accurate.
No definition of a leaf, which matters because here the root could be a leaf.
Thank you for answering my questions. However, I think you should've made the problem statement more clear.
When I asked the setters, if the root of degree $$$1$$$ is considered a leaf, I received "Yes".
But then for the question if the root for a tree $$$1-2, 2-3, 2-4, 2-5$$$ is a leaf, I received that root is only a leaf if $$$n = 1$$$. How can this be inferred from the statement?
Except the inaccurate statement of F other problems were decent.
yeah I feel like F could be solved faster if the problem statement was more clear
Agree with you.
Agree. Also, the statement says "from left to right", which has no definition. I know that everyone can understand this, but it's a little bit confusing.
And the sample tests don't have any explanation, which make the problems so hard to imagine.
there was definition:
can someone help with G? i don't really know what's wrong!!!!! https://codeforces.me/contest/2244/submission/382686697
У тебя не очень хорошо получается составлять задачи. Может тебе стоит попробовать заняться конькобежным спортом?
actually i am little bit dont understand TASK B
If i have 1 4 2 2, so why i cannot make 1 2 4 It will be anyway sorted, without any errors. I dont understand logic of this task
How will you make it 1,2,4 that doesn't make sense, the size of the original was 3 even if you meant like 1,2,4,2 well that isn't sorted either the best you could do is like 1,2,3,3. but then we have two elements that are equal. The array must be Strictly increasing
so, easier implementation will be, just try to sort, without including last element (?). Thank you very much!
haha I had the same doubt too, you have to make the entire array increasing. You cannot ignore the last element.
Yeah, i am just dumb, not finished, and during the upsolve made harder implementation
I am surprised that DSU is such a rare solution to Problem C and is not even considered as a tag for the same. I found it most intuitive and this was also similar to one of LeetCode problems.
Yep, I also just threw a DSU at it as soon as I read the problem.
I am oficially the dumbest person ever. I used int for the sum in B and D and it caused overflow and it didnt work. Guess you learn something every day.
God bless
#define int long longDangerous DP Detected ->
typedef long long ll; // #define int long longWe reach expert in this... MY LEEKS COLORS ARE GONNA CHANGE
5300+ people solved Problem E. Looks like I'm the only dumb one.
u need to construct two strings first one is going to store the differences between the original string and "10101..." second one is going to store the differences between the original string and "01010..." u need to get the number of blocks in these two strings.
17356 participants didn't solve problem E. Are you saying they are all dumb?
yes
extremely similar to a recent codechef contest problem afaik
Perhaps you could try prefix sums. I tried to derive how many groups of differences each flip can resolve, and the result is two groups. So we count the number of different groups within the interval, denoted as sum, and check whether it satisfies sum <= 2*k
One of the best div. 3 of the year, all problems were so much fun!
I hope we can get more rounds like this
They are all well implemented, nice ideas and the author is cool af indeed
bro problem a and b felt like reading comprehension rather than problem solving
thank you for a good round
In conclusion , bezout helped me.
Nice distribution of attempts over time, Assmaamr! Not cheater at all.
was it only me or was A extremely hard to understand?
fr
Why did I misread E as asking whether it was possible to make the entire array beautiful by choosing subsegments only within ([l,r])? My solution even passed all the samples. This is so painful.
Loved today's contest! The problem set was really interesting and fun to solve. Thanks for the great round!
hi, my account is new and this is my first cf contest, i'm currently unrated and i participated in cf round 1109 div.3 but could not solve even the A. Iskander and Drawings but i submitted a solution and it failed. will i get rated or i have to participate in other contests and give correct solution then only i'll get rated?
If you made at least one submission (even if it's wrong), then you'll be rated
However, you need to submit at least one accepted solution in 5 different live contests to be a trusted participant of Div. 3
note that "trusted participant" refers to the participants who are included in the official standings of the contest
okay, thanks for the info!
guys does anyone know when we'll receive our ratings after each contest?
a few hours/mins after system test completes
okay thanks
У тебя не очень хорошо получается составлять задачи. Может тебе стоит попробовать заняться конькобежным спортом?
Can somebody pinpoint me why this D solution failed at systets?: https://codeforces.me/contest/2244/submission/382612368
i tired of losing my rating
not me nor fable can't find whats wrong
Hi, I have less knowledge about Python, so i might be wrong about my claim. But it may be due to incorrect hack as I mentioned in my comment -> https://codeforces.me/blog/entry/155106?#comment-1377926
huge
as sated below, hack violated constrain about b being distinct.
Checked here, gives RE: https://codeforces.me/contest/2244/submission/382776637
This test should be excluded and failed submission should be retested.
FYI: itz_pabloo, MikeMirzayanov, Donald Trump, FBI
Can anybody tell when my rating will be updated I am a new contestant and this was my first contest. Neither my name shows up in final standings in the leaderboard (as it shows only trusted participant). Will i be allotted a rating or not on the basis of this contest.
you aren't the trusted participant, so you can't get any rating this match
Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you.
no rating diff yet, wait a little longer
Why its unrated??????
(The issue has been fixed by setter && coordinator) The hack #1178111 by Carnade for problem D violates the problems constraint. The problem states that every element of b is distinct.
Yet the generator they used to generate testcase fills the array B with value 131293.
The generator in question:
itz_pabloo could you please verify this??
I registered to the contest as rated, but after system testing it is showing this as an unrated contest for me. I just started the contest late, but during registration i did register as rated.
Hi itz_pabloo, I think there is a issue in Test Case 8 for Problem D. Duplicate b[i] are used which violate problem description. Check submission: 382633028
for 2nd question, this testcase: 4 46342 1000000000 73695632 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ....
is giving yes, i checked with:
why it is giving answer as NO , and above code is giving yes? can anyone tell?
11th TC shown only 1 of the total 4 TC.
itz_pabloo 2244D - Yaroslav and Productivity In D problem, My Code has been given TLE for test 7 even though my algorithm is nlogn which fits. Also Test 7 which seems to have all values of a and b as same. Which is not possible coz its given in the question that b has different elements. 382675252
Test 7 Input 1 200000 200000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -1000000000 -...
Array b doesn't have duplicates in test 7, this issue was only present in test 8 which is deleted already. The reason here is qsort being hackable, solution would pass if you wrote merge sort or proper qsort.
The test case of test 7. $$$b$$$ doesn't contain duplicated elements.
qsortis known to take $$$O(n^2)$$$ time for certain (carefully crafted) inputs.Oh okay, didnt know that. Thanks
Hello,
I received a plagiarism warning for this round and noticed that my submissions were marked as skipped. I would like to request a review of my case.
I solved the problems locally in VS Code using CPH for testing. I did not view or copy any other contestant's code during the contest. The only reusable coding pattern I used was a generic DFS that returns a struct containing subtree information, which is a programming style I had learned previously in class. The algorithm and implementation were developed by me during the contest.
If it would be helpful, I can provide my local source files, timestamps, or other development history that I have available.
I would appreciate it if you could review my case.
Thank you for your time.
sorted i think now?
Dear Codeforces team and round co-ordinators,
I received an automated system warning which says that my solution for problem 2244D (or Codeforces Round 1109 Div-3 question D) heavily coincided with other submissions. I am writing to clarify that I did not cheat nor did I leak my solution anywhere during the live contest round.
The high structural similarity is a coincidence arising simply due to the simplicity of the problem logic.
To prove the authenticity of my code, here are my details:
My Submission ID: 382654646
Language used: GNU C++20
Key Logic Explanation: — My design approach consists of the following steps: First, I sort the boundary array 'b' to ensure segments can be sliced from array 'a' (in a sequential left to right manner). Then, I maintain a tracking pointer 'last_idx'. As I iterate through the sorted boundaries, I use a sliding-window nested loop to aggregate the segment-wise sum of array 'a' directly from 'last_idx' up to 'current_boundary'. Every time, I take the absolute value of the segment-sum because each segment's sign can be independently flipped depending on whether we take that element from 'b' or not. Finally, I check if any trailing elements remain after the final boundary index and add them all up using a final linear pass.
Every step of my code is a simple chain of thought, and does things in the simplest possible fashion (and hence, similarity with other people's code may arise without seeing each other's code). I would highly appreciate it if a human coordinator or high-rated reviewer could look into my code to verify its authenticity.
Thank you.
Best regards, Arnav_Shandilya
Здравствуйте. Я хотел бы попросить пересмотреть решение по поводу моего submission. Я не обменивался кодом с другими участниками, не публиковал свое решение и не использовал чужие отправки. Насколько мне известно, утечки моего кода также не было. Если сходство связано с тем, что для этой задачи существует типичная реализация, прошу учесть это. Если требуется какая-либо дополнительная информация с моей стороны, я готов ее предоставить. Спасибо.
Katt1412 clearly used AI to cheat in div 3. Please check his submissions and do sth
Dear Codeforces Team,
I am writing this as a clarification against a system-generated allegation on me for problem 2244E based on the claim that my solution "coincides" with others. About that, I would like to say that the so-called alleged coincidence is merely due to the simplicity of the solution for the problem. It is not difficult to see for a person familiar with CP and Codeforces that this problem is significantly lower than the level we expect in our mind for a Div. 3 E. You can also see that many other people are having the same issue for this contest in the comment section and their contest submissions are being changed from "skipped", which indicates a fault of the system which is fine, faults can happen but I request you to please understand my reasoning and please help me out of this.
My Reasoning: My first thought was "is the minimum number of steps required to make the garland beautiful less than or equal to k, or greater than k?" If it is the first case, then it's possible; if not, then it is not possible. Then the next thing I did was finding this minimum number of steps, where I realized that it depends on the current number of clashes. I derived the mathematical relations for that, then did the comparison, and accordingly gave the answer.
1) My submission : 382672226
2) Language used: GNU C++20
Ive got the same issue. Please codeforces, fix this
Hey! I am new to CF and don't know much but I gave this contest and then got a message saying that my code was similar to others and my verdicts show skipped. I did not copy the code and its a pretty normal solution for the problem. It may be seen that the code snippets are similar but it doesn't necessarily means it is copied. What can I do in this situation?
Katt1412 cheater
Я новичок на (Codeforces), раньше я программировал на других сайтах. Я сам решил задачу (E). Не могли бы вы объяснить, почему я получил предупреждение о схожести за свои ответы? Задача была простой и очевидной.
Я новичок на Codeforces, раньше программировал на других сайтах. Я сам решил задачу E, не могли бы вы сказать, почему я получил предупреждение за похожие ответы? Вопрос был простым, не могли бы вы его проверить?@itz_pabloo
In Q3 , i thought that , for each given index i, it is connected to two another indexes as i + x and i + y. Now i thought that numbers at these indexes can be interchanged any number of times but their movement will be restricted to these indexes only, now since x and y are different , they can enable some index j , to also reach i + x or i + y, so i thought the problem as disjoint set , i made components by traversing the array and joined(i + x,i + y) , now in sorted permutation, the number and index are equal , so if for any index the array[i] and i are not in same component, the array cannot be sorted
What an easy contest