fork download
  1. #include <iostream>
  2. #include <ext/pb_ds/assoc_container.hpp>
  3. #include<ext/pb_ds/tree_policy.hpp>
  4.  
  5. using namespace __gnu_pbds;
  6.  
  7.  
  8. #define ordered_multiset tree<long long, null_type,less_equal<long long>, rb_tree_tag,tree_order_statistics_node_update>
  9.  
  10. using namespace std;
  11.  
  12. int main() {
  13. ordered_multiset ms;
  14. ms.insert(1);
  15. ms.insert(1);
  16. cout << ms.size() << endl;
  17. // your code goes here
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
2