At first glance, problem E looked REALLY similar to an old problem from COCI. I'm not sure from which contest but it was here:
https://evaluator.hsin.hr/
At first glance, problem E looked REALLY similar to an old problem from COCI. I'm not sure from which contest but it was here:
https://evaluator.hsin.hr/