Garvit_2013's blog

By Garvit_2013, history, 3 years ago, In English

Code link :https://codeforces.net/contest/1549/submission/124673267

Please help me I am trying to find it since last night and I am not able till now .

Thanks in advance.

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

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

When you do adj[i].erase(*itr); the iterator gets erased. So try changing the order in which you perform deletion.

adj[*itr].erase(i);
adj[i].erase(*itr);