unordered_set vs set Doubt

Revision en1, by priyanshuog, 2024-04-16 20:10:32

In this question 822C - Hacker, pack your bags! , when I used set it gave TLE on test case 10 but when I used unordered_set, it got Accepted. I read some blogs where they told not to use unordered_set/map on CF as it can be hacked, so what should I do, should I use unordered set/map or not?

Submission 1 (TLE) : 256948385 Submission 2 (Accepted) : 256948457

Tags set, hashset, hashmap, map

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English priyanshuog 2024-04-16 20:10:32 398 Initial revision (published)