fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. priority_queue<int , vector<int> , greater<int> > pmin;
  6. priority_queue<int , vector<int> >pmax;
  7. pmin.push(5);
  8. pmin.push(9);
  9. pmin.push(10);
  10. pmax.push(1);
  11. cout << (long long)(pmax.size() - pmin.size()) << endl;
  12. long long diff = pmax.size() - pmin.size();
  13. cout << diff <<endl;
  14. return 0 ;
  15. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
-2
-2