Hi, in problem E. "Reachability from the Capital" ("https://codeforces.net/contest/999/problem/E") me and author are having the same solution but the autor solution got accepted and mine got time limit exceeded and i am not able to find the solution for it , can someone help me with this solution
authors solution -- "https://codeforces.net/contest/999/submission/48886017" mine solution -- "https://codeforces.net/contest/999/submission/48883663"
Try profiling your code...