fork download
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #include <ext/pb_ds/assoc_container.hpp>
  6. #include <ext/pb_ds/tree_policy.hpp>
  7. using namespace __gnu_pbds;
  8.  
  9. #define oset tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
  10.  
  11.  
  12. /*
  13.   order_of_key(k) :Number of items striclly samller than k
  14.   find_by_order(k) :K-th element in a set (counting from zero)
  15.  
  16. */
  17. void solve()
  18. {
  19. int n,q;
  20. map<int,int>mp;
  21. oset os;
  22.  
  23. }
  24.  
  25. signed main()
  26. {
  27. ios::sync_with_stdio(false);
  28. cin.tie(NULL);
  29.  
  30. solve();
  31. return 0;
  32. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty