Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
37639 郭澍宇 【J】T1 C++ 编译错误 0 0 MS 0 KB 259 2025-04-30 18:17:30

Tests(0/0):


#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; }


测评信息: