Rosetta Problems

Free Contest 128 - SEQUENCEWEIGHT

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