Comments

Second question can be solved with help of DSU. As we can visit any vertex multiple times, so if the OR of whole component will be < w then the answer will be NO. Also problem statement was not correct, it should be greater than or equal to w to pass all the testcases.

+1

Hint for C I wasted my 30 minutes in thinking this logic. Could have googled it early and got a decent rank!

Imagine the amount of money SecondThread will earn by selling this t-shirt in pawn shop in Vegas in the year 2040!!

When will be July Lunchtime prizes distributed ?

+5

According to this Anton birth year is 2021 !!

Contest link ?

199 it is!!

What was the mistake(in constraints) in B ?