Rosetta Problems

ICPC 2021 miền Bắc - I: Gift Box Lottery

https://oj.vnoi.info/problem/icpc21_mb_i