Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Codeforces Round #723 (Div. 2) Editorial

Revision en8, by errorgorn, 2021-06-11 19:26:38

## 1526A - Mean Inequality

Setter: antontrygubO_o
Preparer: errorgorn

Hint 1
Hint 2
Solution
Code (C++)
Code (Python)

## 1526B - I Hate 1111

Setter: errorgorn
Preparer: errorgorn

Hint 0
Hint 1
Hint 2
Solution
Code (C++)
Code (Python)

## 1526C1 - Potions (Easy Version) and 1526C2 - Potions (Hard Version)

Setter: errorgorn and oolimry
Preparer: oolimry

Hint 1
Hint 2
Hint 3
Solution
Code (C++)
Code 2 (C++)
Code (Python)

## 1526D - Kill Anton

Setter: errorgorn
Preparer: errorgorn

Hint 1
Solution
Code (C++)
Code (Python)

## 1526E - Oolimry and Suffix Array

Setter: iLoveIOI
Preparer: iLoveIOI

Hint 1
Solution
Code (C++)
Code (Python)

## 1526F - Median Queries

Setter: errorgorn and oolimry
Preparer: errorgorn

Hint 1
Hint 2
Solution
Code (C++)
Code (Python)

## Code Golf

You may have realized that python codes in the editorial are quite short. We actually had a code golf challenge among testers. You are invited to try code golf our problems and put them in the comments. Maybe I will put the shortest codes in the editorial ;)

Rules for code golf:

• any language allowed
• codes will be judged by number of characters
• must get AC in the respective problems

#### History

Revisions

Rev. Lang. By When Δ Comment
en8 errorgorn 2021-06-11 19:26:38 214 Tiny change: '2|,|2-a|) \leq \max (|1-' -> '2|,|2-a|) < \max (|1-'
en7 errorgorn 2021-05-29 19:07:10 114
en6 errorgorn 2021-05-28 21:17:43 42 Tiny change: '\sigma(x)={1,if x>0−1,if x<0\begin{cas' -> '\sigma(x)=\begin{cas'
en5 errorgorn 2021-05-28 20:30:13 4
en4 errorgorn 2021-05-28 20:14:33 39 Tiny change: '\sigma(x)={1,−1,if x>0if x<0{1,if x>0−1,if x<0\begin{cas' -> '\sigma(x)=\begin{cas'
en3 errorgorn 2021-05-28 19:36:22 0 Tiny change: '\sigma(x)={1,−1,if x>0if x<0{1,if x>0−1,if x<0\begin{cas' -> '\sigma(x)=\begin{cas' (published)
en2 errorgorn 2021-05-28 18:59:37 248 Tiny change: '\sigma(x)={1,−1,if x>0if x<0{1,if x>0−1,if x<0\begin{cas' -> '\sigma(x)=\begin{cas'
en1 errorgorn 2021-05-28 18:45:49 33390 Initial revision (saved to drafts)