So, i recently found this interesting problem:
https://szkopul.edu.pl/problemset/problem/nYCgpBEkq_hw9S-QaoEOOKCI/site/?key=statement
I've been stuck on it for the past couple of days, and I was hoping someone could help me out — maybe share some ideas or give me a small hint?
Any input would be really appreciated!







