Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- multiset<int> A;
- multiset<int> B;
- for (int i = 1; i <= 1000000; i++){
- A.insert(i);
- B.insert(2*i + 1);
- }
- auto t1 = clock();
- swap(A, B);
- auto t = clock() - t1;
- cout << ((float) t)/CLOCKS_PER_SEC << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement