| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151722 | 杜禹轩 | 大力水手吃蔬菜 | C++ | Compile Error | 0 MS | 0 KB | 252 | 2026-04-18 13:41:49 |
#include<bits/stdc++.h> using namespace std; int main(){ long long z=0,x=1001; int n,a,b; cin>>n; cin>>a>>b; z+=a*b; x=b; for(int i=2;i<=n;i++){ cin>>a>>b; if(b<x){ x=b; } z+=a*x; } cout<<z; return 0; }