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

EternalThread's blog

By EternalThread, history, 2 months ago, In English

Anyone who has knowledge of condensation graphs or strongly connected components can help.
Problem Link:- Coin Collector

I have two codes one was not accepted and one was accepted just by adding a reverse(all(root_nodes)(which basically reverses the vector) in line number 80 and the code was accepted. Can anyone please tell me the reason for this??

WA Code
Accepted Code

Thanks in advance!!

Read more »

  • Vote: I like it
  • -1
  • Vote: I do not like it