Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89221 | 陈昊然 | 大力水手吃蔬菜 | C++ | Wrong Answer | 0 MS | 272 KB | 220 | 2024-08-23 11:21:04 |
#include<bits/stdc++.h> using namespace std; int n,m,l,s,d=2e9; int main() { cin>>n; for(int i=1;i<=n;i++){ cin>>m>>l; if(l<=d){ d=l; } s=s+m; } cout<<s*l; return 0; }
------Input------
27 1 1 1 86 1 35 61 71 19 29 1 61 77 29 1 73 83 41 47 81 27 20 1 9 33 76 44 41 65 91 57 43 41 81 65 65 46 10 76 1 45 36 9 11 57 9 25 58 15 13 43 35 65 9
------Answer-----
1006
------Your output-----
9054