We are sorry that you were having troubles with access to Codeforces.↵
↵
<spoiler summary="Problem A of elimination/div2">↵
[tutorial:1032A]↵
</spoiler>↵
↵
<spoiler summary="Problem B of elimination/div2">↵
[tutorial:1032B]↵
</spoiler>↵
↵
<spoiler summary="Problem C of elimination/div2">↵
[tutorial:1032C]↵
</spoiler>↵
↵
<spoiler summary="Problem D of elimination/div2 = problem A of div1">↵
[tutorial:1032D]↵
</spoiler>↵
↵
<spoiler summary="Problem E of elimination/div2 = problem B of div1">↵
[tutorial:1032E]↵
</spoiler>↵
↵
<spoiler summary="Problem F of elimination/div2 = problem C of div1">↵
[tutorial:1032F]↵
</spoiler>↵
↵
<spoiler summary="Problem G of elimination/div2 = problem D of div1">↵
[tutorial:1032G]↵
</spoiler>↵
↵
<spoiler summary="Problem E of div1">↵
[tutorial:1078E]↵
↵
Here is a [gif](https://i.imgur.com/AkYVBRN.gif) with our algorithm adding 2 to 3 if the length was no more than 2.↵
↵
</spoiler>↵
↵
↵
<spoiler summary="Problem A of elimination/div2">↵
[tutorial:1032A]↵
</spoiler>↵
↵
<spoiler summary="Problem B of elimination/div2">↵
[tutorial:1032B]↵
</spoiler>↵
↵
<spoiler summary="Problem C of elimination/div2">↵
[tutorial:1032C]↵
</spoiler>↵
↵
<spoiler summary="Problem D of elimination/div2 = problem A of div1">↵
[tutorial:1032D]↵
</spoiler>↵
↵
<spoiler summary="Problem E of elimination/div2 = problem B of div1">↵
[tutorial:1032E]↵
</spoiler>↵
↵
<spoiler summary="Problem F of elimination/div2 = problem C of div1">↵
[tutorial:1032F]↵
</spoiler>↵
↵
<spoiler summary="Problem G of elimination/div2 = problem D of div1">↵
[tutorial:1032G]↵
</spoiler>↵
↵
<spoiler summary="Problem E of div1">↵
[tutorial:1078E]↵
↵
Here is a [gif](https://i.imgur.com/AkYVBRN.gif) with our algorithm adding 2 to 3 if the length was no more than 2.↵
↵
</spoiler>↵
↵