Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89776 陈意洋 大力水手吃蔬菜 C++ Accepted 1 MS 272 KB 228 2024-09-07 09:17:54

Tests(10/10):


Code:

#include<bits/stdc++.h>; using namespace std; int main(){ int price = 0,ndd = 101; int n,a,b; cin>>n; for(int i=1;i<=n;i++){ cin>>a>>b; if(ndd > b){ ndd = b; } price += a*ndd; } cout<<price; }