back_to_match's blog

By back_to_match, history, 2 years ago, In English

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

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

| Write comment?