Congratulations to Ormlis for taking the first place in a public Div. 1 Codeforces contest for the first time!

# | User | Rating |
---|---|---|

1 | Benq | 3783 |

2 | jiangly | 3666 |

3 | tourist | 3611 |

4 | Um_nik | 3536 |

5 | inaFSTream | 3477 |

6 | fantasy | 3468 |

7 | maroonrk | 3464 |

8 | QAQAutoMaton | 3428 |

9 | ecnerwala | 3427 |

10 | Ormlis | 3396 |

# | User | Contrib. |
---|---|---|

1 | Um_nik | 184 |

2 | adamant | 177 |

3 | awoo | 176 |

4 | nor | 169 |

5 | maroonrk | 165 |

6 | -is-this-fft- | 163 |

7 | antontrygubO_o | 152 |

8 | ko_osaga | 151 |

9 | dario2994 | 150 |

10 | SecondThread | 148 |

The video is uploaded: https://youtu.be/YdJMH0tVgmM

Today I screencast and explained solutions of problems A–D and F. The video is uploaded to YouTube: https://youtu.be/B48ykX0NpUY

I have to inform that the round quality wasn't exceptionally high: the translation was noticeably Google translated from Russian (for example, представление has at least two meanings — representation or performance, and Google Translate wasn't able to discriminate between these two), the pretests were weak in B, C and F (many people were simply TL-hacked or had their solution fail during system testing). I will elaborate on problem F: there I wrote a square root decomposition with incorrect constants, but still got AC though my solution was incorrect on these simple tests:

```
2 3
2 2
```

and

```
4 24
5 5 5 5
```

With the first of these, I was able to uphack six accepted solutions, including my own.

Nevertheless I knew what to expect (I call such rounds *contests for schoolchildren*) and overall experience was satisfactory.

Two days ago Northern Eurasia Finals 2022 took place, mirror of which was on Codeforces: 2022-2023 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred). In the next few hours the standings got unfrozen, thereby we know the list of the teams that qualified to the ICPC Finals this year:

**1 ^{st} place 🏆** MIPT: Yolki-palki (Pechalka, Kapt, Tikhon228)

**2 ^{nd} place 🥇** HSE: FFTilted (Kirill22, teraqqq, Ormlis)

**3 ^{rd} place 🥇** SPb SU: Urgant Team (sava-cska, 74TrAkToR, orz)

**4 ^{th} place 🥇** Belarusian SU: 1: Dungeon Thread (Septimelon, RED_INSIDE, programmer228)

**4 ^{th} place 🥇** SPb ITMO: pengzoo (iakovlev.zakhar, DishonoredRighteous, golikovnik)

**12 ^{th} place 🥉** Innopolis: U A (Farhod_Farmon, Hokimiyon, Ahmed)

**14 ^{th} place** Kazakh-British TU: DeoxyriboNucleic Acid (queen, Na2a, DimmyT)

**15 ^{th} place** SPb HSE: Just3Keks (Bukov, vmos1999, NeKpoT)

**20 ^{th} place** Nazarbayev U: wf or gf? (Aldazharov, CMaster, krauch)

**23 ^{rd} place** AITU: 1 (Muratov, Aliaidar, Kamzabek)

**24 ^{th} place** Moscow SU: apes together strong (voyrus, Vladithur, revelcoS)

**27 ^{th} place** BSUIR: #1: So stuffy (kartel, p3rfect, romarkovets)

Congratulations to everyone aforementioned!

I started coding after I discovered LOUD Enough's cp journey, they showed me that all three barracks can fall simultaneously within first ten minutes of Survival Chaos round

so thank you, tranquility, nikgaevoy, Kaban-5 for your introduction to the CP world

In my deepest gratitude I've drawn all three some of you solving questions on Codeforces site

As Makoto Soejima said, never give up!

please don't down vote, it's my first blog post

Today demon1999 pleases us with a wonderful holiday — she turned 23 today. Thank her for this!

Today there were two nice contests in a row: AtCoder Regular Contest 149 and Codeforces Round 824 (Div. 2). I participated in both of them.

My participation in AtCoder Regular Contest 149 was quite a failure, I neither speedforced nor solved any of the harder problems. The video is already on my channel: https://youtu.be/3D1IbPtrLWg

My participation in Codeforces Round #824 (Div. 2) wasn't a failure, I even finished second! (And this is my by far the most successful participation in an unrated round.) The video is uploaded but still processing, so soon you will be able to watch it. As always, a nice bonus is a detailed editorial in the end of the video: https://youtu.be/fbFAg1th5oM

Subscriptions, comments, likes, watches and other ways of expressing feedback are welcome!

**UPD.** Now both videos are watchable. Enjoy!

Dear everyone,

As always, my screencast and detailed analysis of problems A–G of Codeforces Global Round 22 is already uploaded (but still processing for high-quality viewing) on the channel. This time the video is huge — over five hours!

Please watch, enjoy, learn, comment — anything you want!

**UPD.** The video is ready for viewing.

Honestly, I don't really like contests carried out by giants like Google and Meta. While participating I feel some sort of permanent malaise, it seems like giants simply ignore all experience of how contests are run by Codeforces and AtCoder. But today I went as far as I have never gone before — I took 201^{st} place at the Meta Hacker Cup 2022 Round 2 and advanced to Round 3 (preceding the final one). I do not hope that I will go to the finals, but for me participating in Round 3 is already as cool as in a final one!

A recording of my participation can be viewed here.

Today I participated in Codeforces Round 819 (Div. 1 + Div. 2) and Grimoire of Code Annual Contest 2022. At first glance, this was really a nice contest, and even though some problems were a bit too technical, they did contain some certain ideas (and as to whether these ideas were cool and beautiful, I guess there's no accounting for taste). However, the tests in the harder problems weren't strong enough. For example,

I easily uphacked nikgaevoy's solution 171150224 of 1726F - Late For Work (submissions are not allowed), where he printed negative numbers on tests as little as with $$$n=2$$$; (btw, congrats nikgaevoy on becoming an IGM!)

heno239 uphacked turmax's solution 171126442 of 1726G - A Certain Magical Party with also a tiny test; (btw, congrats turmax on becoming an LGM!)

Nevertheless, I screencast the solving process (with my struggling to solve 1726F - Late For Work (submissions are not allowed)) and explanation of problems A–F, and I am now uploading it to YouTube, the video should appear here in several hours. Please leave your feedback (and other cases of high- or low-quality testing in this contest) in the comments!

**UPD:** While I was sleeping, two news have happened:

The video uploaded successfully.

The round became unrated because of the problem F, from which I suffered a lot during the contest. (By the way, the suffering had nothing to do with the quality of the tests in this problem or with this issue, I just made stupid bugs). You may read this and this blog to get to know the incident.

I got to the 41^{st} place in Codeforces Round 814 (Div. 1), which quite surprised me because my last several contests were also pretty lucky, not to say in this contest I was extremely slow in solving the problem A. Still I followed the tenet from the never_giveup's handle and finished the contest, it happened to be not that bad. Moreover, I beat my personal best of rating. I screencast and explained 1718A2 - Burenka and Traditions (hard version), 1718B - Fibonacci Strings, 1718C - Tonya and Burenka-179 and partly 1718D - Permutation for Burenka from this contest here: https://youtu.be/6iaSJikYZ-o

Feel free to watch and leave your invaluable feedback!

Since there were not that many Div. 1 rounds last several days, I decided to compete in a Div. 2 round. This time my participation was quite poor, but still I solved and explained some of the problems in front of a camera, so I hope that my video will be useful for my adorable viewers: https://youtu.be/ZF42Y5cQhf4

As with my previous video, any sort of feedback is welcome in the comments.

Recently I started screencasting my contests, there are already several videos on my channel. They all are in Russian because I ponder in Russian.

Today, as an experiment, I decided to screencast CodeTON Round 2 and comment my actions in English. Yes, my reasoning is often fragmentary there (because under the pressure of time I cannot spend much time explaining a lot of things rather than start coding). Still, since I finished 24^{th} I expect it to be rather entertaining content, thus I invite you to watch the process: https://youtu.be/ZK8vVVhoQXI

Since I am very new to exploring this niche, any sort of advice of improving the quality of my videos is highly welcome here in the comments, on the Youtube, or in my PM.

Hi there!

Recently after Codeforces Global Round 21 Um_nik noticed that he might be the ninth or tenth person to reach **3600** rating points, but still he did it earlier than Petr. I wondered whether Um_nik really was *that* attentive to know for sure how many people reached **3600** before him. As this is an objective truth or an objective misconception, I decided to simply check it.

Consider the following problem: given three integers $$$x$$$, $$$y$$$ и $$$m$$$, $$$0 \leqslant x,y < m < 2^{32}$$$, calculate $$$xy\bmod m$$$. The easy way is just to multiply these numbers and apply the modulo operation:

```
uint32_t prod(const uint32_t x, const uint32_t y, const uint32_t m)
{
return x * y % m;
}
```

As you might have guessed, this solution is wrong. The thing is that an overflow is possible in such a procedure: the operation `x * y`

is performed in the type`uint32_t`

, and in fact the intermediate result of this operation will not be $$$xy$$$, but $$$xy\bmod2^{32}$$$. If after that we take the result modulo $$$m$$$, it may differ from the correct one:

The way out is simple — you need to multiply in a larger type:

```
uint64_t prod_uint64(const uint64_t x, const uint64_t y, const uint64_t m)
{
return x * y % m;
}
```

If you do this, then, since $$$xy<2^{64}$$$, this product will definitely not overflow, and after taking the result modulo, you will get the correct answer.

The question is: what if $$$x$$$, $$$y$$$ and $$$m$$$ can be greater than $$$2^{32}$$$?

IMO 2021 closing ceremony is taking place now.

Top countries were:

- People's Republic of China, 208 points
- Russian Federation, 183 points
- Republic of Korea, 172 points
- United States of America, 165 points
- Canada, 151 points

IMO 2021 opening ceremony takes place right now. Join the chat!

Codeforces (c) Copyright 2010-2023 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jun/10/2023 03:07:19 (j1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|