Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

rishichowdhury711's blog

By rishichowdhury711, history, 4 hours ago, In English

Hello Codeforces , I have a question regarding the problem D of the previous contest. I just solved the question using brute force and DSU and it got accepted. I dont understand why it is not giving TLE. It would be really helpful if you can please explain the reason for the code getting accepted or the testcases are weak. Thank you here is the Code

  • Vote: I like it
  • +3
  • Vote: I do not like it