Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86170 刘千亦 大力水手吃蔬菜 C++ Accepted 1 MS 272 KB 248 2024-07-23 14:48:22

Tests(10/10):


Code:

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