1

Why I am getting TLE can anyone help me?

 2 years ago
source link: http://codeforces.com/blog/entry/100240
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Hello everyone, Today in codeforces round 773 I had submitted question B solution LINK-:https://codeforces.com/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.com/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..


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK