Resolução Maratona Paulista de Programação SBC 2026 - Problema M

Problem M (Multiword) São Paulo Programming Marathon SBC 2026 Problem author: Miguel Miní Link to the problems on Codeforces: https://codeforces.com/gym/106598 Official website: https://maratonapaulista.sbc.org.br/?... Instagram: instagram.com/gabrieldalalioprog/ For contact regarding private lessons or events: [email protected]