Hello Codeforces!↵
↵
Thanks for taking part in the SWERC 2021-2022 mirror. We hope you enjoyed thinking about the problems.↵
↵
The contest was intended for a wide range of participants. As such, there were "very easy" to "easy" problems (A, M, H) as well as extremely challenging ones (B and J, neither of which appeared in the official contest, together with C). Some problems demanded the knowledge of specific techniques, algorithms or data structures (e.g. E, G, K, J), while others were purely based on insight and deduction (B, D, N).↵
↵
But without further ado, let's present the editorial!↵
↵
<br>↵
↵
## Solutions↵
↵
---↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem A">↵
[tutorial:1662A]↵
</spoiler>↵
↵
Statement by [user:dario2994,2022-04-19], preparation by [user:dario2994,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem B">↵
[tutorial:1662B]↵
</spoiler>↵
↵
Statement by [user:Giove,2022-04-19], preparation by [user:Giove,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem C">↵
[tutorial:1662C]↵
</spoiler>↵
↵
Statement by [user:gangsterveggies,2022-04-19], preparation by [user:gangsterveggies,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem D">↵
[tutorial:1662D]↵
</spoiler>↵
↵
Statement by [user:tap_tapii,2022-04-19], preparation by [user:tap_tapii,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem E">↵
[tutorial:1662E]↵
</spoiler>↵
↵
Statement by [user:Petr,2022-04-19], preparation by [user:Petr,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem F">↵
[tutorial:1662F]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:majk,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem G">↵
[tutorial:1662G]↵
</spoiler>↵
↵
Statement by [user:cescmentation_folch,2022-04-19], preparation by [user:cescmentation_folch,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem H">↵
[tutorial:1662H]↵
</spoiler>↵
↵
Statement by [user:majk,2022-04-19], preparation by [user:majk,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem I">↵
[tutorial:1662I]↵
</spoiler>↵
↵
Statement by [user:tap_tapii,2022-04-19], preparation by [user:gangsterveggies,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem J">↵
[tutorial:1662J]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:Simon,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem K">↵
[tutorial:1662K]↵
</spoiler>↵
↵
Statement by [user:gog.gerard,2022-04-19], preparation by [user:gog.gerard,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem L">↵
[tutorial:1662L]↵
</spoiler>↵
↵
Statement by [user:gog.gerard,2022-04-19], preparation by [user:gog.gerard,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem M">↵
[tutorial:1662M]↵
</spoiler>↵
↵
Statement by [user:cip999,2022-04-19], preparation by [user:cip999,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem N">↵
[tutorial:1662N]↵
</spoiler>↵
↵
Statement by [user:cip999,2022-04-19], preparation by [user:Delfad0r,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem O">↵
[tutorial:1662O]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:Simon,2022-04-19]
↵
Thanks for taking part in the SWERC 2021-2022 mirror. We hope you enjoyed thinking about the problems.↵
↵
The contest was intended for a wide range of participants. As such, there were "very easy" to "easy" problems (A, M, H) as well as extremely challenging ones (B and J, neither of which appeared in the official contest, together with C). Some problems demanded the knowledge of specific techniques, algorithms or data structures (e.g. E, G, K, J), while others were purely based on insight and deduction (B, D, N).↵
↵
But without further ado, let's present the editorial!↵
↵
<br>↵
↵
## Solutions↵
↵
---↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem A">↵
[tutorial:1662A]↵
</spoiler>↵
↵
Statement by [user:dario2994,2022-04-19], preparation by [user:dario2994,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem B">↵
[tutorial:1662B]↵
</spoiler>↵
↵
Statement by [user:Giove,2022-04-19], preparation by [user:Giove,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem C">↵
[tutorial:1662C]↵
</spoiler>↵
↵
Statement by [user:gangsterveggies,2022-04-19], preparation by [user:gangsterveggies,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem D">↵
[tutorial:1662D]↵
</spoiler>↵
↵
Statement by [user:tap_tapii,2022-04-19], preparation by [user:tap_tapii,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem E">↵
[tutorial:1662E]↵
</spoiler>↵
↵
Statement by [user:Petr,2022-04-19], preparation by [user:Petr,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem F">↵
[tutorial:1662F]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:majk,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem G">↵
[tutorial:1662G]↵
</spoiler>↵
↵
Statement by [user:cescmentation_folch,2022-04-19], preparation by [user:cescmentation_folch,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem H">↵
[tutorial:1662H]↵
</spoiler>↵
↵
Statement by [user:majk,2022-04-19], preparation by [user:majk,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem I">↵
[tutorial:1662I]↵
</spoiler>↵
↵
Statement by [user:tap_tapii,2022-04-19], preparation by [user:gangsterveggies,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem J">↵
[tutorial:1662J]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:Simon,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem K">↵
[tutorial:1662K]↵
</spoiler>↵
↵
Statement by [user:gog.gerard,2022-04-19], preparation by [user:gog.gerard,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem L">↵
[tutorial:1662L]↵
</spoiler>↵
↵
Statement by [user:gog.gerard,2022-04-19], preparation by [user:gog.gerard,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem M">↵
[tutorial:1662M]↵
</spoiler>↵
↵
Statement by [user:cip999,2022-04-19], preparation by [user:cip999,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem N">↵
[tutorial:1662N]↵
</spoiler>↵
↵
Statement by [user:cip999,2022-04-19], preparation by [user:Delfad0r,2022-04-19]↵
↵
<br>↵
↵
<spoiler summary="Solution of Problem O">↵
[tutorial:1662O]↵
</spoiler>↵
↵
Statement by [user:Simon,2022-04-19], preparation by [user:Simon,2022-04-19]