Help in a cses judge problem
Hello, can any one please tell how to solve This problem
Atcoder ABC #354 Solution Discussion
Interview with orz | IMO Gold Medalist, ICPC World Finalist, IGM in CF