Guest User

Untitled

a guest
Mar 6th, 2022
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. const long long mod = 1000000007,
  4.                 inf = 1100000000000000000,
  5.                 Inf = 0x3f3f3f3f;
  6. signed main () {
  7.     cin.tie(0);
  8.     ios_base::sync_with_stdio(0);
  9.     int Tc = 1;
  10.     // cin >> Tc;
  11.     while (Tc--) {
  12.         vector<int> alpha(10000000);
  13.         mt19937 rnd(238);
  14.         uniform_int_distribution<int> uid(0, Inf);
  15.         for (auto& e : alpha)
  16.             e = uid(rnd);
  17.         sort(alpha.begin(), alpha.end());
  18.         alpha.erase(unique(alpha.begin(), alpha.end()), alpha.end());
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment