| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 81618 | 杨竣周 | cafe | C++ | Accepted | 100 | 31 MS | 248 KB | 219 | 2023-08-09 17:09:49 |
#include<bits/stdc++.h> using namespace std; int n,make,eat,ans,mine=114514; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>make>>eat; ans+=make; mine=min(eat,mine); } cout<<ans+mine; return 0; }