Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86169 李雨昊 大力水手吃蔬菜 C++ Accepted 1 MS 272 KB 226 2024-07-23 14:47:11

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; }