fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. ios::sync_with_stdio(0);
  6. cin.tie(0); cout.tie(0);
  7. int N;
  8. cin >>N;
  9. priority_queue<pair<int,int>> pq;
  10. int a,b;
  11. for(int i=0;i<N;i++){
  12. cin >>a>>b;
  13. pq.push({a,b});
  14. }
  15. }
Success #stdin #stdout 0.01s 5292KB
stdin
10
3 6 9
stdout
Standard output is empty