Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

osama's blog

By osama, history, 9 years ago, In English

Recently I've tried to solve this problem 160D - Edges in MST but there was a bug in my code, I've tried to debug the code but that was just wasting time, then I've rewritten the code again and got AC :D. Making a comparison between the two codes was so weird they were almost identical, I read about undefined - behavior in C++ but I couldn't find anything like that.

WA code: 12013993

AC code: 12013990

Any help would be appreciated.

Full text and comments »

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