Proof_by_QED's blog

By Proof_by_QED, 5 weeks ago, In English
Rating Predictions

2211A - Удаление антимедианы

Problem Credits: nifeshe, Proof_by_QED

Hint 1
Solution
Code
Rate The Problem!

2211B - Конструктив Микки-Мауса

Problem Credits: Proof_by_QED

Hint 1
Solution
Code
Rate The Problem!

2211C1 - Равные мультимножества (простая версия)

Problem Credits: Proof_by_QED

Special thanks to __baozii__ for suggesting this subtask.

Hint 1
Solution
Rate The Problem!

2211C2 - Равные мультимножества (сложная версия)

Problem credits: Proof_by_QED

Hint 1
Solution
Code
Rate The Problem!

2211D - И-массив

Problem credits: nifeshe

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Solution
Code
Rate The Problem!

2211E - Минимальное покрытие путями

Problem credits: Proof_by_QED

Hint 1
Hint 2
Solution
Rate The Problem!
Code

2211F - Изучение бинарного поиска

Problem credits: Proof_by_QED

Unfortunately, it seems like there are a lot of cheaters on this problem. We will do the best to clear them out, but keep in mind this is out of our control.

Hint 1
Hint 2
Solution 1

Thanks to Dragos for writing up the following solution.

Solution 2
Code (Solution 1)
Code (Solution 2)
Bonus
Rate The Problem!

2211G - Рациональная пузырьковая сортировка

Problem credits: chromate00. Special thanks: BurnedChicken

Hint 1
Solution
Code
Rate The Problem!

2211H - Удаление медианы

Problem credits: nifeshe

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7
Hint 8
Hint 9
Hint 10
Hint 11
Hint 12
Hint 13
Solution
Code
Rate The Problem!

Full text and comments »

  • Vote: I like it
  • +48
  • Vote: I do not like it

By Proof_by_QED, 6 weeks ago, In English

Hello Codeforces

After countless nights of yapping, bedfight duels, and failed zero cycles

The authors of the three best Div. 1 of all time, nifeshe, chromate00, and I, have joined forces to create the Division $$$1+2$$$ round that will break the internet: Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2), which will be held on Mar/28/2026 17:45 (Moscow time). This round will be combined for Division $$$1$$$ and Division $$$2$$$ and will be rated for everyone.

You will have $$$2.5$$$ hours to solve $$$8$$$ problems. Between $$$6$$$ and $$$7$$$ problems will not be split into subtasks. Also, between $$$6$$$ and $$$7$$$ problems will not be interactive, so you are recommended to read the guide to interactive problems if you have not encountered them before.

We would like to thank the following people for making the contest possible:

The scoring distribution is below.

A B C D E F G H
$$$500$$$ $$$1250$$$ $$$(1250+1000)$$$ $$$2000$$$ $$$2500$$$ $$$3000$$$ $$$3250$$$ $$$4000$$$

Now, a few words from our sponsor Nebius!

We are a Nasdaq-listed company building cloud infrastructure and hyperscale platforms for AI innovators worldwide. We support the entire AI lifecycle from training to deployment, powered by high-performance NVIDIA GPUs. Behind the platform is a global team of over 1400 people, including more than 400 engineers working at the frontier of AI, supported by a dedicated in-house AI R&D team.

We’re thrilled to invite you to enroll into our first Early Talent Program! It’s designed for students and new grads to learn, contribute to building AI infrastructure, and grow into core members of our team.

If you are interested, please fill in this form. It could be your opportunity to start your career journey at Nebius.

Apply

And last but not least about the prizes for Nebius Round 2.

We’ve got something exciting lined up for the top 15 contestants on the leaderboard. Rewards come in the form of credits for Nebius Token Factory – they can be spent on inferring AI models, eg. generating text or powering AI-driven applications or agents.

  • 🥇 1st place – equivalent of $1000
  • 🥈 2nd & 🥉 3rd places — $500 each
  • 🥇 4th–15th places — $100 each

We hope you will participate and enjoy the problems. Good luck!

UPD: the contest has been delayed by 10 minutes to allow everyone to register.

UPD2: https://mirror.codeforces.com/blog/entry/152448 editorial

Top 15:

  1. turmax
  2. tourist
  3. ksun48
  4. StarSilk
  5. littleju
  6. hos.lyric
  7. literalchild
  8. pigstd
  9. Golovanov399
  10. jeroenodb
  11. Ormlis
  12. ecnerwala
  13. potato167
  14. Kevin114514
  15. Maksim1744

Full text and comments »

  • Vote: I like it
  • +180
  • Vote: I do not like it

By Proof_by_QED, history, 6 months ago, In English

Hello Codeforces.

We are introducing a new type of problem which may appear in future Codeforces rounds, called Communication problems!

In these problems, your program would be ran twice, with different input and output formats between the runs. All variables stored in the memory will be lost between runs. However, the information given to you on the first run may be important to you for completing the second run correctly. Therefore, one of the key challenges in these types of problems would be to find a way to use the limited amount of output you are given in the first run to communicate information to the second run. Below shows a flowchart.


2025-09-06-12-40-07
Flowchart for communication problems

In these problems, time and memory limits for both runs would be kept separately. For example, if a problem has a time limit of $$$2$$$ seconds, you will only get the Time Limit Exceeded if program runs for more than $$$2$$$ seconds on one of the runs, but not if both runs takes $$$1.5$$$ seconds.

It is also possible that a problem is both interactive and run-twice. There may be interaction on either run of your program. For these types of problems, it is especially important to read the problem statement carefully to ensure you are getting the input and interaction format correctly, especially regarding whether you must flush your outputs.

To give participants a feel of these new types of problems, we will hold Testing Round 20 (Unrated, Communication Problems), which will start on Nov/03/2025 17:35 (Moscow time). You will be given $$$1$$$ hour to solve $$$3$$$ run-twice problems. The problems are authored by cry, yse, SpyrosAliv, and chromate00. One problem on the set will be interactive, so you are recommended to read the guide for interactive problems if you are unfamiliar with these types of problems. Of course, this round will be unrated. Good luck, and I hope you will have fun with the new type of problem!

Edit: The contest will be in ICPC format with no pretests and hacks disabled.

Full text and comments »

  • Vote: I like it
  • +1572
  • Vote: I do not like it

By Proof_by_QED, 7 months ago, In English

Hello, Codeforces!

We gladly invite you to participate in Codeforces Round 1058 (Div. 1, Div. 2), which will be held on Oct/12/2025 17:35 (Moscow time)! You will be given $$$\mathbf{2.5}$$$ hours to solve $$$\mathbf{6}$$$ or $$$\mathbf{7}$$$ problems (depending on your division). One problem will be divided into two subtasks.

The problems were authored by wuhudsm, Proof_by_QED and chromate00. We have put so much effort (and time) into this contest, and we hope you will enjoy it!

Do note that for both divisions, at least one of the problems will be interactive. So if you are unfamiliar with them, please read the guide for interactive problems and get yourself ready.

Our team would like to thank the following people:

And now, the score distribution.

Division 1:

A B C D E F
$$$750$$$ $$$1500$$$ $$$1500$$$ $$$(1500+1750)$$$ $$$3000$$$ $$$3500$$$
Division 2:
A B C D E F G
$$$500$$$ $$$1000$$$ $$$1250$$$ $$$1750$$$ $$$2500$$$ $$$2500$$$ $$$(2500+2750)$$$

Good luck, and I hope you find enlightment from the problemset!

And a personal note:

UPD: Editorial is uploaded here.

Also UPD by chromate00: I sincerely apologize about the weak pretests of problem 1B/2E. I have greatly underestimated the runtime and memory usage of the worst solutions, while still wanting to be generous about slower solutions. This has led to weak tests during contest. Deeply sorry about the bad contest experiences affected by this.

Full text and comments »

  • Vote: I like it
  • -391
  • Vote: I do not like it

By Proof_by_QED, history, 8 months ago, In English
Rating Predictions

2137A - Collatz Conjecture

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137B - Fun Permutation

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137C - Maximum Even Sum

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137D - Replace with Occurrences

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137E - Mexification

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137F - Prefix Maximum Invariance

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2137G - Cry Me a River

Problem Credits: SpyrosAliv

Solution
Code
Rate The Problem!

Full text and comments »

  • Vote: I like it
  • +67
  • Vote: I do not like it

By Proof_by_QED, history, 8 months ago, In English

Hello Codeforces



2025-09-06-12-40-07
Thanks to these nerds for 15 winstreak on Hypixel bedwars

SpyrosAliv and I are excited to welcome you to participate in Codeforces Round 1047 (Div. 3) at Sep/07/2025 17:35 (Moscow time). You will be given $$$2$$$ hours and $$$15$$$ minutes to solve $$$7$$$ problems.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.

The penalty for each wrong submission in this round is 10 minutes.

Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • do not have a rating of 1900 or higher.

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 (unless you register unrated).

We would like to thank the following people for making the contest possible:

Additionally, if you are a tester of EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) and you are rated for Division 3, I will ask you to not participate in the round, as it is possible you have seen some tasks before.

I wish you the best of luck and I hope you enjoy the contest!

EDIT1: editorial https://mirror.codeforces.com/blog/entry/146121

Full text and comments »

  • Vote: I like it
  • +271
  • Vote: I do not like it

By Proof_by_QED, 10 months ago, In English

Hello Codeforces Once Again

After months of hard work, cry, Lilypad and I are extremely proud to welcome you to participate in EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) at Jul/06/2025 17:35 (Moscow time). This round is combined for Division 1 and Division 2, and it will be rated for everyone.

You will be given $$$3$$$ hours to solve $$$9$$$ problems. One problem will be split into two subtasks.

We would like to thank the following people for making the contest possible:

The scoring distribution is below.

A B C D E F G H I
$$$500$$$ $$$1000$$$ $$$1250$$$ $$$1750$$$ $$$2000$$$ $$$(2000+2000)$$$ $$$4000$$$ $$$4750$$$ $$$4750$$$

And now a word to our sponsors: EPIC Institute of Technology

EPIC

About EPIC Institute of Technology

EPIC Institute of Technology is an innovative educational project, driven by the Deltix team under the EPAM Systems umbrella. As part of EPIC — EPAM Product Innovation Center, we aim to cultivate the brightest minds and prepare them for a future in cutting-edge technology projects.

Why EPIC:

EPIC Institute of Technology is an accelerator for the best talents. Our students will acquire hands-on experience in one of the selected major programs, all of which are highly demanded right now on top projects, together with the fundamental knowledge, so indispensable for real professionals. Successful graduates will have a unique chance to jumpstart their career on the most challenging and interesting EPAM projects worldwide. You will join the community of intelligent and driven individuals and have an honor to work with and learn from them.

Here are the answers to the most common questions:

How much does education cost?

EPIC Institute of Technology is completely free. There are no fees to register for exams, tuition fees or any other hidden liabilities. The only restriction for getting into EPIC Institute of Technology is age. You must be at least 18 years old to become a student.

How is the educational process organized?

Each program lasts exactly one year. The academic year consists of two semesters. Courses in the first semester are the same for all programs. Courses in the second semester depend on the selected major program.

During the semester, students complete homework assignments and take 2 exams—a midterm and a final. The final grade a student gets for each training course depends on the quality of completed assignments and participation in practical classes.

How will the classes be held?

Lectures will be pre-recorded and available for self-study. Practical classes will be held at the specified time according to the provided schedule. Also, students will have access to a Discord server, where they can discuss topics of academic interest with teachers and other students.

In what language will I study?

All programs are in English.

How can I apply?

The admissions process is as follows:

1) Register on our platform
— You can immediately try a test contest to check your readiness and get familiar with the platform.
2) Take one entrance exam on July 20, July 26, or August 1
— You only need to pass any single exam to qualify!
— If you don't succeed on one date, you can try again on the next.
3) Automatic enrollment for all who pass any exam.

Pro tip: Check out previous exam breakdowns in our Codeforces group for extra preparation help.

What will happen after graduation?

All EPIC Institute of Technology graduates will receive a diploma, and top students will be offered the opportunity to join EPAM projects where the skills gained during their training will be in high demand.

Please visit our website to learn more about EPIC Institute of Technology and the available programs. If you have any questions, you can quickly ask them in our chat. Stay tuned to our announcement channel and LinkedIn page and never miss an update!

We sincerely hope you will participate and enjoy the problems. Good luck!

UPD: score distribution released

UPD2: https://mirror.codeforces.com/blog/entry/144382 editorial

Full text and comments »

  • Vote: I like it
  • +776
  • Vote: I do not like it

By Proof_by_QED, history, 10 months ago, In English

Thanks for participation! We hope you loved the contest.

2124A - Deranged Deletions

Problem Credits: Lilypad

Hint
Solution
Code
Rate the Problem

2124B - Minimise Sum

Problem Credits: cry

Special thanks to prvocislo for misreading problem G to the statement of this problem, nifeshe for solving it, and Dominater069 for suggesting we use this problem!

Hint
Solution
Code
Rate the Problem

2124C - Subset Multiplication

Problem Credits: Proof_by_QED

Hint 1
Hint 2
Solution
Code
Bonus
Rate the Problem

2124D - Make a Palindrome

Problem Credits: satyam343

Hint 1
Hint 2
Solution
Code
Rate the Problem

2124E - Make it Zero

Problem Credits: satyam343

Hint 0
Hint 1
Hint 2
Solution
Code
Rate the Problem

2124F1 - Appending Permutations (Easy Version) and 2124F2 - Appending Permutations (Hard Version)

Problem Credits: Proof_by_QED

Huge thanks to Benq for transforming my original problem (which is solvable using a sequence found in OEIS) to the current problem!

Original Problem
Hint 1
Hint 2
Solution
Code
Rate the Problem (F1)
Rate the Problem (F2)

2124G - Maximise Sum

Problem Credits: cry
Special thanks to Error_Yuan and Friedrich for solving this problem!

Hint 0
Hint 1
Hint 2
Solution
Code
Rate the Problem

2124H - Longest Good Subsequence

Problem Credits: Proof_by_QED

Special thanks to satyam343 for helping with improving the problem, and Dominater069 for the full solution!

Hint 1
Hint 2
Solution
Code
Rate the Problem

2124I - Lexicographic Partition

Problem Credits: Proof_by_QED

Hint 1
Hint 2
Solution
Code
Rate the Problem

Full text and comments »

  • Vote: I like it
  • +309
  • Vote: I do not like it

By Proof_by_QED, 13 months ago, In English
Rating Predictions

Thanks to reirugan for helping write the editorials.

2094A - Trippi Troppi

Problem Credits: Proof_by_QED

Solution
Code
Rate The Problem!

2094B - Bobritto Bandito

Problem Credits: Proof_by_QED

Hint
Solution
Code
Rate The Problem!

2094C - Brr Brrr Patapim

Problem Credits: cry

Hint
Solution
Code
Rate The Problem!

2094D - Tung Tung Sahur

Problem Credits: Proof_by_QED

Hint
Solution
Code
Rate The Problem!

2094E - Boneca Ambalabu

Problem Credits: Proof_by_QED

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2094F - Trulimero Trulicina

Problem Credits: Proof_by_QED

Hint
Solution
Code
Rate The Problem!

2094G - Chimpanzini Bananini

Problem Credits: Proof_by_QED, cry

Hint 1
Hint 2
Solution
Code
Rate The Problem!

2094H - La Vaca Saturno Saturnita

Problem Credits: cry

Hint 1
Hint 2
Solution
Code
Rate The Problem!

Full text and comments »

  • Vote: I like it
  • +90
  • Vote: I do not like it

By Proof_by_QED, 13 months ago, In English

Good Morning/Afternoon/Evening/Night Codeforces



1000015885-removebg-preview
This is Orangutini Ananasini Emoji

cry and I are overjoyed to welcome you to participate in Codeforces Round 1017 (Div. 4) at Apr/13/2025 18:35 (Moscow time). Note the unusual time of the round. You will be given $$$2$$$ hours and $$$15$$$ minutes to solve $$$8$$$ problems.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.

Note that the penalty for each wrong submission in this round is 10 minutes. Also, note the rule restricting AI use!!! If you are caught using AI, your submissions will be skipped, then your account will be banned, and I will possibly even publicly shame you.

Remember that only the trusted participants of the fourth division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the fourth division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • do not have a rating of 1400 or higher.

Regardless of whether you are a trusted participant of the fourth division or not, if your rating is less than 1400, then the round will be rated for you (unless you register unrated).

We would like to thank the following people for making the contest possible:


EDIT: There used to be a meme picture on this announcement. Unfortunately I was not aware of its potential political implications. It has since been removed.

EDIT 2: As a replacement to the controversial image, we have brought Orangutini Ananasini Emoji. Say hi to Orangutini Ananasini Emoji. Hi Orangutini Ananasini Emoji!

EDIT 3: editorial https://mirror.codeforces.com/blog/entry/141796

Full text and comments »

  • Vote: I like it
  • +344
  • Vote: I do not like it

By Proof_by_QED, 15 months ago, In English
Rating Predictions

2065A - Skibidus and Amog'u

Problem Credits: chromate00
Analysis: macaquedev

Solution
Code
Rate The Problem!

2065B - Skibidus and Ohio

Problem Credits: cry
Analysis: macaquedev

Solution
Code
Rate The Problem!

2065C1 - Skibidus and Fanum Tax (easy version) and 2065C2 - Skibidus and Fanum Tax (hard version)

Problem Credits: larush
Analysis: macaquedev

Solution
Code
Rate The Problem! (C1)
Rate The Problem! (C2)

2065D - Skibidus and Sigma

Problem Credits: cry
Analysis: macaquedev

Solution
Code
Rate The Problem!

2065E - Skibidus and Rizz

Problem Credits: Proof_by_QED
Analysis: macaquedev

Solution
Code
Rate The Problem!

2065F - Skibidus and Slay

Problem Credits: chromate00
Analysis: chromate00

Solution 1
Solution 2 (Skibidi)
Code (Solution 1)
Code (Solution 2)
Rate The Problem!

2065G - Skibidus and Capping

Problem Credits: larush
Analysis: Proof_by_QED

Solution
Code
Rate The Problem!

2065H - Bro Thinks He's Him

Problem Credits: Proof_by_QED
Analysis: efishel

Solution
Code
Rate The Problem!

Full text and comments »

  • Vote: I like it
  • +38
  • Vote: I do not like it

By Proof_by_QED, 15 months ago, In English

Hellowo Codeforces o7

cry, larush, chromate00, Friedrich, Lilypad, and I are ebullient to welcome you to participate in Codeforces Round 998 (Div. 3) at Jan/19/2025 17:35 (Moscow time). We have cooked up $$$7$$$ problems to be solved in $$$2$$$ hours and $$$30$$$ minutes.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.

Note that the penalty for each wrong submission in this round is 10 minutes. Also, note the rule restricting AI use!!! If you are caught using AI in an unorthodox manner, you will be banished off the face of the earth (trust me).

Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • do not have a rating of 1900 or higher at any moment in time.

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 (unless you register unrated).

We would like to orz the following individuals for making the contest possible:

UPD: Editorial

Full text and comments »

  • Vote: I like it
  • +209
  • Vote: I do not like it