Comments

thanks for fast editorial)

ok i got it but always i solve A, B in div2 but i cant solve any C problem in div 2 could you give me some tips for improving) thx

which topic i should learn for solving problems as C?

did you check testcases in problem C? there is t equal to 1, if t will be 1000 and each n will be equal 2e5 i sure that all solutions will be TLE)))

-27

worst contest i have ever entered because the third problem's solution not logical

-41

the third problems was wrong and how it impossible with 2e5 and t <= 1000 ??