Run ID:87818

提交时间:2024-08-15 10:29:57

#include<iostream> using namespace std; int main() { int n,number,price,ndd = 10000,s = 0; cin>>n; for(int i=1;i<=n;i++){ cin>>number>>price; if(ndd > price){ ndd = price; } s += number * ndd; } cout<<s; }