Thank God People who are at the top (LGM/IGM/GM/MASTER) are changing their colour BY MAGIC to newbie/pupil/cyan otherwise i am seeing everyone colour LGM/IGM/GM/MASTER
why u guys are downvoting
Thank God People who are at the top (LGM/IGM/GM/MASTER) are changing their colour BY MAGIC to newbie/pupil/cyan otherwise i am seeing everyone colour LGM/IGM/GM/MASTER
why u guys are downvoting
I am solving this problem got the greedy solution but interested to solve this via dp as well can someone explain the dp solution in more better way than editorial ( i am unsatisfied with editorial).
Problem Link -> https://codeforces.me/problemset/problem/321/B