GETTING TLE NOT UNDERSTANDING WHY..

Правка en1, от back_to_match, 2021-11-08 05:14:43

this is the atcoder contest link: https://atcoder.jp/contests/abc225/tasks/abc225_d

submission link: https://atcoder.jp/contests/abc225/submissions/26955824

If anybody could help please help me out as for printing i have proceeded with naive approach and my total time complexity O(no of elements connected*No of queries) total time complexity if any one can help

pls help me out

Теги atcoder beginner, dfs and similar

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский back_to_match 2021-11-08 05:15:12 0 (published)
en1 Английский back_to_match 2021-11-08 05:14:43 454 Initial revision (saved to drafts)