RubayedMunna's blog

By RubayedMunna, history, 3 years ago, In English

I have used same code. I got WA on 45 test using "GNU C++20(64)" compiler but got accepted using "GNU C++17" compiler. Why?

Here is The code: https://codeforces.me/contest/217/submission/151172349

  • Vote: I like it
  • -23
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +5 Vote: I do not like it

"I have used same code"... but no?

st.insert(parent1[i]);

vs

st.insert(find_set1(i));

not same