Atcoder Beginner Contest 257 Discussion?
I couldn't find a discussion blog for this contest so here's one.
Does anyone know how to solve Ex?