Блог пользователя Arpa

Автор Arpa, история, 8 месяцев назад, По-английски

Invitation to the Go for Gold August Long Challenge!

Competitive programmers, get ready! The Go for Gold Long Challenge is back, bringing another thrilling opportunity to test your problem-solving skills and climb the leaderboard on Codeforces!

We are excited to present yet another round of engaging and challenging problems for the community. Whether you're a seasoned competitor or just starting out, this contest is designed to offer a balanced mix of difficulty levels to help everyone push their limits.

The format of the Long Challenge is IOI-style, which includes subtasks in problems, so that everyone can try all of them.

Contest Details

Please join the codeforces group and register for the contest.

Why Should You Join?

  • Enhance Your Competitive Programming Skills
  • Gain Exposure to Unique Problems
  • Engage with an Active Community of Programmers

Contributors

All problems are prepared and tested by DeadlyCritic, ili, amiraskarieh2003.

You can join our Discord server for any questions.

We invite you to propose problem ideas for the next rounds. We increased our payment rates recently. Give back to the community.

The countdown has begun! Mark your calendars and prepare to GoForGold once again. We can’t wait to see your amazing submissions.

Stay tuned for more updates and happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +12
  • Проголосовать: не нравится

Автор Arpa, история, 8 месяцев назад, По-английски
Popular opinion: CF ratings are unrelated to your IOI results. CF contests differ significantly from IOI contests.

False!

Unpopular opinion: A contestant's Codeforces rating is more predictive of their final IOI result than their score on Day 1 is of their score on Day 2.

True!

A higher CF rating, with a gap of at least 50, correlates with an 84% chance of achieving a better placement at IOI. The relationship between IOI placement and CF rating is strongly connected. The Pierson Correlation Coefficient for these two factors is -0.813. At the same time, the Pierson Correlation Coefficient between the scores of day 1 and day 2 of IOI is 0.804.

A side note for IOI participants: If you performed poorly on the first day, just think of it as a single bad Codeforces contest—you can always do better next time! You can likely compensate on the second day. Likewise, if you did a great job on Day 1, don't relax too much; the next day is a new challenge. The 0.804 coefficient shows a strong connection, but just as CF rating!


Correlation between CF rating and IOI placement

Here are the statistics on CF ratings for each medal:

Medal Minimum Rating Median Rating
🥇 1991 2450
🥈 1693 2303
🥉 1318 2106

Additionally, I've discovered an interesting correlation: participants' ratings one year before IOI also correlate with their final ranks; the Pierson Correlation Coefficient is 0.70.



Correlation between CF rating a year before IOI and IOI placement

Based on this insight, I’ve trained a model that can predict your placement at IOI. If you’re curious about your predicted placement for IOI 2026, leave a comment! Note that as time passes, the model can determine your place more accurately. Feel free to comment again in six months to see the updated prediction.

You can check out a similar blog post for IOI 2024 here.

I predicted results for some people in the above blog.

Predicted Place Actual Place
4967
10471
148156
80126
174121
107274
254290
183209
180194
5988

Update: If you want to make the data more complete, please comment if you know someone from this gist.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +114
  • Проголосовать: не нравится

Автор Arpa, история, 9 месяцев назад, По-английски

Join the codeforces group and checkout the contest.

Here, you can see the PDF version of the editorial.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

Автор Arpa, история, 9 месяцев назад, По-английски

Hello Codeforces!

Less than a week to IOI 2025! I used accounts from this blog and made the prediction for the IOI 2025 ranking. Ratings are calculated based on the average of the current rating and the maximum rating.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -150
  • Проголосовать: не нравится

Автор Arpa, история, 9 месяцев назад, По-английски

Invitation to the Go for Gold July Long Challenge!

Competitive programmers, get ready! The Go for Gold Long Challenge is back, bringing another thrilling opportunity to test your problem-solving skills and climb the leaderboard on Codeforces!

We are excited to present yet another round of engaging and challenging problems for the community. Whether you're a seasoned competitor or just starting out, this contest is designed to offer a balanced mix of difficulty levels to help everyone push their limits.

Note: We have shifted the format of the Long Challenge from ICPC-style to IOI-style, which includes subtasks in problems, so that everyone can try all of them.

Contest Details

Please join the codeforces group and register for the contest.

Why Should You Join?

  • Enhance Your Competitive Programming Skills
  • Gain Exposure to Unique Problems
  • Engage with an Active Community of Programmers

Contributors

All problems are prepared and tested by DeadlyCritic, ili, Hooded_Hood, amiraskarieh2003.

You can join our Discord server for any questions.

We invite you to propose problem ideas for the next rounds. We increased our payment rates recently. Give back to the community.

The countdown has begun! Mark your calendars and prepare to GoForGold once again. We can’t wait to see your amazing submissions.

Stay tuned for more updates and happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

Автор Arpa, история, 10 месяцев назад, По-английски

Join the codeforces group and checkout the contest.

Here, you can see the PDF version of the editorial.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

Автор Arpa, история, 10 месяцев назад, По-английски

Invitation to the Go for Gold June Long Challenge!

Competitive programmers, get ready! The Go for Gold Long Challenge is back with its fifth iteration, bringing another thrilling opportunity to test your problem-solving skills and climb the leaderboard on Codeforces!

We are excited to present yet another round of engaging and challenging problems for the community. Whether you're a seasoned competitor or just starting out, this contest is designed to offer a balanced mix of difficulty levels to help everyone push their limits.

Note: We have shifted the format of the Long Challenge from ICPC-style to IOI-style, which includes subtasks in problems, so that everyone can try all of them.

Contest Details

Please join the codeforces group and register for the contest.

Why Should You Join?

  • Enhance Your Competitive Programming Skills
  • Gain Exposure to Unique Problems
  • Engage with an Active Community of Programmers

Contributors

All problems are prepared and tested by DeadlyCritic, ili, and me.

You can join our Discord server for any questions.

We invite you to propose problem ideas for the next rounds. We increased our payment rates recently. Give back to the community.

The countdown has begun! Mark your calendars and prepare to GoForGold once again. We can’t wait to see your amazing submissions.

Stay tuned for more updates and happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

Автор Arpa, история, 10 месяцев назад, По-английски

Do you know the monotonic stack? You’ll learn something easier to understand with shorter code!

We’re going to discuss a common fundamental problem that you may face as part of other problems. The Next Smaller Element (NSE) problem.

Problem Statement

Given an array $$$a$$$, for each index $$$i$$$, find $$$next_i$$$, which is the first index to the right of $$$i$$$ that is smaller than $$$a_i$$$.

Example

Let's say $$$a = [5, 8, 2, 6, 7, 9, 1, 2]$$$. The output (zero-based) is $$$next = [2, 2, 6, 6, 6, 6, 7, 7]$$$.

NSJ Algorithm

Let’s begin with a simple, non-optimal solution.

for (int i = n - 1; i >= 0; --i) {
	next[i] = i + 1;
	while (next[i] != n && a[i] <= a[next[i]])
		++next[i];
}

The time complexity of the above code is $$$\mathcal{O}(n^2)$$$. What if I reduce it to $$$\mathcal{O}(n)$$$ by changing only one line?

Think before you continue...



Optimal Code


For a better understanding, check out the GIF below:

Trying to generate counterexamples? I did a lot at the beginning, too. Let’s prove it.

Why the next values are correct

We know that $$$next_i$$$ is either $$$n$$$ or $$$a_{next_i} \lt a_i$$$. So we need to prove that it really is the first smaller index—i.e., no $$$j$$$ with $$$i \lt j \lt \text{next}_i$$$ has $$$a_j \lt a_i$$$. Let’s define $$$nextChain_i$$$ to be a sequence of indices we see in our while loop to finally find the $$$next_i$$$. Formally, $$$nextChain_{i, 0} = i + 1$$$, $$$nextChain_{i, k} = next_{nextChain_{i, k - 1}}$$$. The sequence continues until $$$a_i \gt a_{nextChain_{i, k}}$$$.

Consider there exists a $$$j$$$ s.t. $$$i \lt j \lt next_i$$$ where $$$a_j \lt a_i$$$. One can simply observe that $$$j$$$ can not be contained in the $$$nextChain$$$, because the algorithm will stop at that. So there exists a $$$k$$$ where $$$nextChain_{i, k - 1} \lt j \lt nextChain_{i, k}$$$. As we know $$$a_j \lt a_i \lt a_{nextChain_{i, k - 1}}$$$, it follows that $$$next_{nextChain_{i, k - 1}} = j$$$. This is a contradiction, so no such $$$j$$$ exists—and our argument is complete.

Why this is O(n)

Lemma

Consider the line next[i] = next[next[i]]. Let k = next[i] (before the update). The pointer next[i] effectively skips over k to point to next[k]. An index k can be skipped over in this manner at most once.

Proof of lemma

Consider two indices $$$i \lt i'$$$ that skip over $$$k$$$ while finding their $$$next$$$. We know $$$a_{i'} \lt a_k$$$ and $$$i' \lt k$$$, so when we were finding $$$next_i$$$, we should reach $$$i'$$$ before we reach $$$k$$$, and then we never meet $$$k$$$. Formally, there is integer $$$l$$$ where $$$nextChain_{i, l} \lt i' \lt nextChain_{i, l + 1}$$$. Given $$$a_{i'} \lt a_k \lt nextChain_{i, l + 1}$$$, $$$next_{nextChain_{i, l}}$$$ is not $$$nextChain_{i, l + 1}$$$ because there is at least an element ($$$a_{i'}$$$) which is smaller than $$$a_{nextChain_{i, l}}$$$ and it's nearer to $$$nextChain_{i, l}$$$ than $$$nextChain_{i, l + 1}$$$. This is a contradiction, and our argument is proven.

Now, with the lemma, we know the number of times next[i] = next[next[i]] happens is $$$\mathcal{O}(n)$$$, so the total time complexity is $$$\mathcal{O}(n)$$$.

Shorter proofs are welcome!

Why This Was Undiscovered?

The NSE problem is very popular and fundamental, I think I faced it 50 times over the past 13 years since I started CP. But I never saw anyone know NSJ. I checked dozens of submissions on Codeforces and LeetCode—none used the NSJ trick. I also queried several AI tools to see whether this algorithm had been used or discovered anywhere and found out it is used in this paper to solve another problem. However, it hasn’t become popular enough in the community to replace the monotonic stack. Why do you think that is?

I think the reason is that people try to learn from others instead of discovering things on their own. If you tried finding a solution for the NSE problem, what was the probability that you ended up with monotonic stack? How about NSJ?

This again confirms my teaching method slogan: "Be a fellow traveller, not a travel leader" (see my profile picture, and check out more here).

Problems for practicing:

Update (June 10): I know monotonic stack has other applications. But NSJ seems like a magic that you think gets TLE, but it works, and it's worth learning.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -66
  • Проголосовать: не нравится

Автор Arpa, история, 11 месяцев назад, По-английски

Join the codeforces group and checkout the contest.

Here, you can see the PDF version of the editorial.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

Автор Arpa, история, 11 месяцев назад, По-английски

Invitation to the Go for Gold May Long Challenge!

Competitive programmers, get ready! The Go for Gold Long Challenge is back with its fourth iteration, bringing another thrilling opportunity to test your problem-solving skills and climb the leaderboard on Codeforces!

We are excited to present yet another round of engaging and challenging problems for the community. Whether you're a seasoned competitor or just starting out, this contest is designed to offer a balanced mix of difficulty levels to help everyone push their limits.

Note: We have shifted the format of the Long Challenge from ICPC-style to IOI-style, which includes subtasks in problems, so that everyone can try all of them.

Contest Details

Please join the codeforces group and register for the contest.

Why Should You Join?

  • Enhance Your Competitive Programming Skills
  • Gain Exposure to Unique Problems
  • Engage with an Active Community of Programmers

Contributors

All problems are prepared and tested by DeadlyCritic, ili, and me.

You can join our Discord server for any questions.

We invite you to propose problem ideas for the next rounds. We increased our payment rates recently. Give back to the community.

The countdown has begun! Mark your calendars and prepare to GoForGold once again. We can’t wait to see your amazing submissions.

Stay tuned for more updates and happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

Автор Arpa, история, 12 месяцев назад, По-английски

Join the codeforces group and checkout the contest.

Here, you can see the PDF version of the editorial.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

Автор Arpa, история, 12 месяцев назад, По-английски

Invitation to the Go for Gold April Long Challenge!

Competitive programmers, get ready! The Go for Gold Long Challenge is back with its fourth iteration, bringing another thrilling opportunity to test your problem-solving skills and climb the leaderboard on Codeforces!

We are excited to present yet another round of engaging and challenging problems for the community. Whether you're a seasoned competitor or just starting out, this contest is designed to offer a balanced mix of difficulty levels to help everyone push their limits.

Note: We have shifted the format of the Long Challenge from ICPC-style to IOI-style, which includes subtasks in problems, so that everyone can try all of them.

Contest Details

Please join the codeforces group and register for the contest.

Why Should You Join?

  • Enhance Your Competitive Programming Skills
  • Gain Exposure to Unique Problems
  • Engage with an Active Community of Programmers

Contributors

All problems are prepared and tested by DeadlyCritic, ili, Enigma27, ludo., OIaspirant2307 and me.

You can join our Discord server for any questions.

We invite you to propose problem ideas for the next rounds. We increased our payment rates recently. Give back to the community. Thanks to ProofByContradiction_, AksLolCoding, GM_Dan4Life, lovewingbell, Muhammad-Ahmad for suggesting ideas for this contest!

The countdown has begun! Mark your calendars and prepare to GoForGold once again. We can’t wait to see your amazing submissions.

Stay tuned for more updates and happy coding!

UPD: Editorial is published.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +51
  • Проголосовать: не нравится

Автор Arpa, история, 13 месяцев назад, По-английски

Hello, Codeforces Community!

We are excited to announce the GoForGold Long Challenges—an innovative monthly contest series brought to you by Newton School of Technology. Starting on the second last Friday of every month, these challenges will run for 10 days, providing a fantastic platform to learn new things and hone your problem-solving skills.

As the Contest Coordinator, I invite you to share your creative problem ideas with us. This is a unique opportunity where you don't have to prepare a full-fledged problem—simply submit your idea. If your idea is accepted, you'll be rewarded with a cash prize!

Below is the reward structure based on the difficulty and corresponding Codeforces rating:

Difficulty CF Difficulty Rating Idea Reward (USD)
Cakewalk 800 — 1200 $6
Simple 1200 — 1600 $8
Easy 1600 — 1900 $10
Easy-Med 1900 — 2200 $15
Medium 2200 — 2400 $35
Med-Hard 2400 — 2600 $50

Submit your problem ideas using our Submission Form.

Happy problem proposing!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +19
  • Проголосовать: не нравится

Автор Arpa, история, 14 месяцев назад, По-английски

Hope you enjoyed the contest!

Text editorials will be published soon. I've created video editorials for all problems, except for problem M — Alternating Sum).

A - XO-OR

Link to video

Code

B - Birthdays

Link to video

Code

My solution is an overkill. Checkout the following code from Seal Breakers.

Code

C - Harmonic Grids

Link to video

Code

D - Guess the permutation

Link to video

Code

E - Easiest Problem

Link to video

Code

F - Permaban

Link to video

Code

G - Divine Powers

Link to video

Code

H - Klein Moretti's Riddle

Link to video

Code

I - Min Xor Subarray

Link to video

Code (Python)
Code (Translated to C++ using AI and minor fixes)

J - Alice and BOB

Link to video

Code

K - Land Distribution

Link to video

Code

L - Tree Harmony

Link to video

Code

M - Alternating Sum

Draft editorial

N - Maximize Minimum Mex

Link to video

Code

Please let me know how you prefer this kind of problem-solving videos.

  • Record from the beginning. Start reading the problem, think, solve, code (example). Shows complete journey of solving a problem. Very lengthy videos.
  • Record after theoretically solving (like what I did here). It can possibly lead to an incorrect solution and getting AC in next tries.
  • Solve and get AC, then record the video and describe the solution and implementation. Short and concise

Полный текст и комментарии »

Разбор задач Insomnia 2025
  • Проголосовать: нравится
  • +52
  • Проголосовать: не нравится

Автор Arpa, история, 14 месяцев назад, По-английски

Hi Codeforces!

I’ve recorded four videos about Range Minimum Query (RMQ) and related topics. These might be helpful for competitive programmers, especially if you’re diving into data structures or optimization techniques.

Problem statement:

You are given an array $$$a$$$ of size $$$n$$$. You are also given $$$q$$$ queries of type $$$[l, r)$$$ as a range. Each query asks for the minimum element of $$$a$$$ in the given range.

Videos Breakdown:

1. Range Minimum Query / Sqrt Decomposition | Implementation

  • Covers fundamentals and basics of RMQ and how sqrt decomposition works.

2. Range Minimum Query / Sparse Table | Implementation

  • Explains the sparse table technique step-by-step with code.

3. GSS1 on SPOJ: Sparse Table + Special Node Trick | Implementation

  • Solves the classic GSS1 problem using sparse tables and a unique node optimization.

4. The Old Arpa’s Trick Was Wrong! Check This New One. | Implementation

  • Most important video! You might know "Arpa’s trick" from this CF blog or CP-Algorithms, but existing explanations are partially incorrect. I explain the flaws, fix the approach, and provide a correct implementation.

⚠️ The order does matter!

Feel free to ask questions in the comments. Happy coding! 🚀

Полный текст и комментарии »

  • Проголосовать: нравится
  • +22
  • Проголосовать: не нравится

Автор Arpa, история, 16 месяцев назад, По-английски

I just returned from the 1st edition of the GoForGold camp in India 🇮🇳, where I had the privilege of teaching some of the brightest Indian students as they prepare for the upcoming ICPC World Finals.

After organizing camps in Syria, Uzbekistan, Azerbaijan, and Croatia, this was yet another incredible experience of helping students push closer to their competitive programming goals.

A highlight of this trip was witnessing the unique approach of Newton School of Technology. They brought teachers right from industry to university to fill the gap — a truly innovative structure that left a lasting impression.

Congratulations to the top three winners in Div. 1:
🥇 404_solution_not_found: P.V.Sekhar, sai-17, nishkarsh
🥈 poocha kya: _helloLad, Atekichan, sv1shan
🥉 SoloTree: Dragokj03, Divine_Spark, evenvalue



Camp was held for 7 days, including a leisure day. Every day participants started their morning with a contest, which I selected for Div 1. I spent four days teaching first-division classes and two days teaching second-division classes. acraider and Dominater069 also covered the remaining two days of the first-division classes. I covered the following topics in lecture sessions: Sack, HLD, FFT, NTT, Network Flow, Treap, Geometry, and Game Theory. Also, I held the post-contest discussions.

On the first day, I told the students "You should die at the end of the camp" and they approved on the last day that they reached the goal I set for them. We grow under pressure, and a camp is the place to train under pressure. Every day having contests, post-contest discussions, and lecture sessions creates a high pressure that leads to incredible growth. I also experienced the same situation in the Moscow camp in 2020.

There are countless people to thank, but I’d especially like to express my gratitude to Deepak Enigma27 Gour for inviting me and the Newton School of Technology for their warm hospitality.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +145
  • Проголосовать: не нравится

Автор Arpa, история, 17 месяцев назад, По-английски

Hey there!

Thank you for being part of the ICPC India Prelims 2024! 🚀

I've put together hints and solutions for the problems to help you reflect on the challenges. As the contest admin, I even recorded myself solving the problems live — it's a mix of strategy, insights, and a behind-the-scenes look at my thought process.

🎥 Watch the video here: https://youtu.be/NsIj7CgDPY8

Let me know what you think, and feel free to share your thoughts or questions! 😊

The problems are ordered from easy to hard.

Unsatisfying Array

Hint
Solution

AND Quest

Hint
Solution

Small Indices

Hint
Solution

Yet Another GCD Problem

Hint
Solution

Equations

Hint
Solution

Update:

I'm sorry about what happened in the ICPC prelims. The problems passed to me just 10 hours before the contest. As you can see in the video almost all the time I was just engaged with solving them. The time was such tight that I was occupied with just solving the problems to finish them before the contest started. I didn't have any time to test.

I know that the organizers are making a decision that will make everyone happy.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -190
  • Проголосовать: не нравится

Автор Arpa, 18 месяцев назад, По-английски

Salam, Codeforces!

On behalf of Sharif University of Technology, we are thrilled to invite you to the Rayan Programming Contest 2024!

The contest will feature three exciting rounds:

  1. Warm-Up Round: Will be started on November 12, 2024. You can participate here.
  2. Selection Round: Scheduled for November 30, 2024, as a rated Div. 1 + Div. 2 contest.
  3. Final Round: The grand finale will take place onsite in Tehran in Spring 2025.

Prizes

  • A total prize pool of $40,000 for the Final Round winners!
  • 50 exclusive T-shirts for participants in the Selection Round.

We would like to express our gratitude to:

  • MikeMirzayanov for making this event possible.
  • KAN for his dedicated coordination efforts.
  • The Rayan team for organizing the contest.

Looking forward to seeing you in the upcoming rounds!

More information can be found at rayan.global.

Best of luck,
Rayan Programming Contest Team

Полный текст и комментарии »

  • Проголосовать: нравится
  • +171
  • Проголосовать: не нравится

Автор Arpa, история, 18 месяцев назад, По-английски

It has been a year since our brothers and sisters in Palestine have been dying and watching their families die. With the war in Lebanon also unfolding, I wondered what I could do.
We, Algoritmi Academy, want to do the least we can to support people there. We sincerely apologize for not acting sooner.

Starting now, we will hold free weekly classes for Palestinian and Lebanese coders. Our priority will be those preparing for IOI and ICPC, but we may accept coders preparing for other goals.

To participate, register on our website and select group classes.

Our activities are not limited to one class per week; we’ll also have a monthly contest. If the number of participants grows, we’ll make two divisions to better maintain the level. For those who may struggle with English, mention it in your registration form; we may hold some classes in Arabic, too.

And finally, we want to send your strong, but injured heart a healing:

«أُذِنَ لِلَّذِينَ يُقَاتَلُونَ بِأَنَّهُمْ ظُلِمُوا وَإِنَّ اللَّهَ عَلَىٰ نَصْرِهِمْ لَقَدِيرٌ»
Those who are fought against are permitted to defend themselves because they have been wronged, and God is indeed able to help them

Sincerely to all the resilient and unyielding Palestinian and Lebanese people, The Algoritmi Academy team:

Полный текст и комментарии »

  • Проголосовать: нравится
  • +480
  • Проголосовать: не нравится

Автор Arpa, история, 19 месяцев назад, По-английски
CF ratings are unrelated to your IOI results. CF contests differ significantly from IOI contests.

Wrong!

A higher CF rating, with a gap of at least 100, correlates with an 87% chance of achieving a better placement at IOI. In fact, the relationship between IOI placement and CF rating is strongly connected. The Pierson Correlation Coefficient for these two factors is -0.83.


Correlation between CF rating and IOI placement

❗ What is that outlier participant on the top-right? He is Jiyu Shen (Crysfly), with CF rating of 3000+, but it seems that he was unable to attend the contest 💔

Here are the statistics on CF ratings for each medal:

Medal Minimum Median
🥇 2029 2469
🥈 1501 2274
🥉 1637 2082

Additionally, I've discovered an interesting correlation: participants' ratings one year before IOI also correlate with their final ranks. By the way, some participants showed remarkable jumps in their ratings during that one-year period. Specifically, there were 4 participants with 1000+ growth in CF rating!



Correlation between CF rating a year before IOI and IOI placement

Based on this insight, I’ve trained a model that can predict your placement at IOI. If you’re curious about your predicted placement for IOI 2025, leave a comment! Note that as time passes, the model can determine your place more accurately. So you may comment again 6 months later to see the updated prediction.

Check out the similar blog for IOI 2019 here.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1106
  • Проголосовать: не нравится

Автор Arpa, история, 19 месяцев назад, По-английски

Hey everyone!

I’ve just returned from an incredible 13-day journey in Croatia, where I had the pleasure of being a part of OCPC 2024 Fall as the editorialist. It was an exhilarating experience to lead editorial sessions after each contest.



Explaining the solution to a problem while one of the participants is checking the distance to the river beach. :broken-heart:

The problem sets were amazing — I truly enjoyed them all. They took me back to my time at the Moscow Camp 2020, evoking the same excitement and challenge of solving numerous problems under time pressure. It was a refreshing and rewarding experience, especially since I don’t compete as frequently these days. After my World Finals in 2021, I semi-retired from competitive programming, shifting my focus to coaching instead: Algoritmi Academy. Now, I only compete a few times a year, so getting to dive deep into this environment again was a real pleasure.



While in Croatia, I also made sure to explore the beautiful landscapes. I rented a car and embarked on a breathtaking drive through the winding roads to Plitvice Lakes, and then onwards to the stunning Croatian coastline. It was a once-in-a-lifetime experience, filled with natural beauty and unforgettable moments.

Congratulations to the first team: Singapore Legged Forces: first place cheated (Wailydest, errorgorn, 244mhq). A huge thank you to OCPC, and of course, a special thanks to adamant and -is-this-fft- for the invitation — it was an honor to be part of this event.

Also read: adamant blog on this.

Watch editorial session for the eighth day contest contest: Link.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +43
  • Проголосовать: не нравится

Автор Arpa, история, 20 месяцев назад, По-английски

Welcome to the second part of our series on using CLion for competitive programming.

After our first blog post, we received helpful feedback that we’ll address here. We aim to keep our videos short and to the point, so we’ll cover more details and respond to comments in the blog.

Watch

Our goal is to create high-quality content for competitive programming, and we value your support and feedback in helping us reach this goal.

Once we’ve covered the IDE topics, we’ll move on to more in-depth content on algorithms, strategies, and problem-solving.

Addressing Your Feedback


I feel Vim is better than an IDE.
Compare to VSCode
Genuine question: How do you ensure the IDE you use is also available at on-site contests?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

Автор Arpa, история, 22 месяца назад, По-английски

Hey folks!

Choosing an efficient IDE or editor is a common concern in competitive programming and other programming areas. There are also a lot of Codeforces blogs about that. Many of my students always ask me about this matter, so I created some content on this concern. I also encourage others to do the same and show the features of the IDE/Editor they are currently using.

After 10 years of experience and examining a lot of editors and IDEs, I am using CLion today. As you may know, CLion is an IDE by JetBrains. They also have IDEs with the same features and shortcuts for other languages like Java (IntelliJ) and Python (Pycharm).

There are two main reasons people try to avoid JetBrains (or similar IDEs):

  1. The first one is that they are usually not free.
  2. The second one is that they are slow.

For the first one, note that if you are a student, you can access the student version of JetBrains. For the second one, follow me to see why they are worth it.

The advantages of using an IDE include numerous shortcuts that speed up your coding (which you can see in the video linked below). Another advantage is that they assist you in debugging. They can also catch compile errors and warnings before compiling! There are many other benefits that we will discuss soon.

Watch: https://www.youtube.com/watch?v=kd7-YG-xLVo

Полный текст и комментарии »

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

Автор Arpa, история, 22 месяца назад, По-английски

Hey Codeforces!

If you do competitive programming with C++ or use C++ in other areas, you should definitely check out my latest YouTube video on Google Sanitizers. These tools will help you catch bugs and improve your code quality!

Watch now

Happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +38
  • Проголосовать: не нравится

Автор Arpa, 2 года назад, По-английски

Hello again, Codeforces Community,

We are back and thrilled to announce the official launch of our group classes! Following your valuable feedback from our first announcement, we've defined our rules for group classes.

We're excited to offer a special price on group classes! Check out these fantastic rates:

  • 2-student class: $19 per session
  • 3-student class: $15 per session

Here's the best part: our unique group class program allows for individual registration. Sign up on your own, and we'll begin your sessions at the group rate, continuing with one-on-one classes until we find suitable classmates to join you. This means you start benefiting from the group rate immediately!

For more details and to take advantage of this limited-time offer, please visit our website (registration takes just 2 minutes!).

For quick registration, just fill out this form and we will contact you as soon as possible.

If you want to know more about me, you can check out my resume or my life story: 10 years of competitive programming!

Happy coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится