Div 2 B
Can anybody please explain me how to solve this problem, couse tutorial is very bad and not understandable:(
https://mirror.codeforces.com/problemset/problem/1541/B
Leetcode Weekly 500 Solution Discussion