Aman_Khanna's blog

By Aman_Khanna, history, 3 years ago, In English

Hello everyone, Today in codeforces round 773 I had submitted question B solution LINK-:https://codeforces.net/contest/1642/submission/147484347, I am getting TLE on test case 6 instead of using unordered_set but after that when I submit my code using set only then it get accepted LINK-:https://codeforces.net/contest/1642/submission/147488911 Can anyone tell why this happen?? In my knowledge unordered_set time complexity is less than set so that why I used unordered_set.. Correct me if I have some wrong information please.. It also happens with unordered_map and map also..

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

| Write comment?