Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <stack>
  4. #include <cstdlib>
  5. #include <unordered_set>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11. freopen("out.txt", "w", stdout);
  12. unordered_set<long long> a;
  13. a.max_load_factor(3);
  14. for (long long i = 0; i < 200000; i++)
  15. a.insert(i * 126271);
  16. cout << "\n\n\n";
  17. for (int i = 0; i < a.bucket_count(); i++)
  18. {
  19. for (auto it = a.begin(i); it != a.end(i); it++)
  20. {
  21. cout << *it << " ";
  22. }
  23. cout << "\n";
  24. }
  25. cout << a.bucket_count();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement