Комментарии
На iez → Self made problem help, 17 месяцев назад
0

the difficulty of this problem could change depending on whether the array is a permutation or not. A permutation is a more friendly one

На vaaven → Codeforces Round #1031 Editorial, 17 месяцев назад
0

That's true. Thanks :).

На vaaven → Codeforces Round #1031 Editorial, 17 месяцев назад
0

Oh yeah 😂 I forgot it's python 🥲.

На vaaven → Codeforces Round #1031 Editorial, 17 месяцев назад
0

Shorter solution for problem B

Code
На Vladosiya → Codeforces Round #1027 (Div. 3) Разбор, 17 месяцев назад
0

You can avoid that by using string keys or tuple keys. those work better than integer keys.