| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 9550 | 罗炜翰 | 求最大总和 | C++ | Accepted | 100 | 1 MS | 264 KB | 267 | 2025-04-17 21:19:52 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d,n; cin>>n; cin>>a>>b; c=a; d=b; for(int i=0;i<n-1;i++) { cin>>a>>b; if(c<a) { c=a; } if(d>b) { d=b; } } cout<<'['<<c<<','<<d<<']'; return 0; }