# codechef

## Mashtali vs AtCoder solution codeforces

Mashtali vs AtCoder solution codeforces After many unsuccessful tries, Mashtali decided to copy modify an AtCoder problem. So here is his copied new problem: There is a tree with 𝑛n vertices and some non-empty set of the vertices are pinned to the ground. Two players play a game against each other on the tree. They alternately perform the following action: Remove an …

## Squid Game solution codeforces

Squid Game solution codeforces After watching the new over-rated series Squid Game, Mashtali and Soroush decided to hold their own Squid Games! Soroush agreed to be the host and will provide money for the winner’s prize, and Mashtali became the Front Man! 𝑚m players registered to play in the games to win the great prize, but when Mashtali …

## AmShZ Wins a Bet solution codeforces

AmShZ Wins a Bet solution codeforces Right before the UEFA Euro 2020, AmShZ and Safar placed bets on who’d be the champion, AmShZ betting on Italy, and Safar betting on France. Of course, AmShZ won. Hence, Safar gave him a bracket sequence 𝑆S. Note that a bracket sequence is a string made of ‘(‘ and ‘)’ …

## Mashtali: a Space Oddysey solution codeforces

Mashtali: a Space Oddysey solution codeforces Lee was planning to get closer to Mashtali’s heart to proceed with his evil plan(which we’re not aware of, yet), so he decided to beautify Mashtali’s graph. But he made several rules for himself. And also he was too busy with his plans that he didn’t have time for …

## AmShZ and G.O.A.T. solution codeforces

AmShZ and G.O.A.T. solution codeforces Let’s call an array of 𝑘k integers 𝑐1,𝑐2,…,𝑐𝑘c1,c2,…,ck terrible, if the following condition holds: Let 𝐴𝑉𝐺AVG be the 𝑐1+𝑐2+…+𝑐𝑘𝑘c1+c2+…+ckk(the average of all the elements of the array, it doesn’t have to be integer). Then the number of elements of the array which are bigger than 𝐴𝑉𝐺AVG should be strictly larger than the number of elements of the array which are smaller …