Codeforces
CF Step
Youtube Linkedin Discord Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Testcases : Yet Another Monster Fight

TC1

4
2 4 2 1 
5

TC2

8
1 11 1 1 12 1 1 1
16