| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 37640 | 郭澍宇 | 【J】T1 | C++ | Compile Error | 0 | 0 MS | 0 KB | 264 | 2025-04-30 18:19:41 |
#include<bits/stdc++.h> priority_queue<int>pq; int main(){ int n; cin>>n; for(int i = 1;i<=n;i++){ int a,b; cin>>a>>b; pq.push(a);pq.push(a-b); } int ans = pq.top(); pq.pop(); cout<<ans+pq.top()<<endl; }