DIV3->1931F — Chat Screenshot help
source link: https://codeforces.com/blog/entry/126008
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
My approach is to form an adjacency list of graph , then i will check if the given directed graph is cyclic or not . But I am getting wrong answer . When I checked the editorial , the approach is right . So if anyone can help me finding out where i am wrong .
Thank you in advance.
Code : https://codeforces.com/contest/1931/submission/246745814
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK