Please subscribe to the official Codeforces channel in Telegram via the link ×

Kannu2k's blog

By Kannu2k, history, 5 weeks ago, In English

Question: Submission:

So first i've checked if the frequencies of all elmenents is exactly two. Second check: If node 1 is connected to node 2 and 3. Then node 2 and 3 cannot be connected. If this is true for all nodes, return yes. Otherwise output No. Idk why this is failing.

  • Vote: I like it
  • 0
  • Vote: I do not like it