Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102849 | 郝王骏程 | 大力水手吃蔬菜 | C++ | Wrong Answer | 1 MS | 268 KB | 451 | 2024-12-23 20:51:09 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,a=0,b=0,c=0,f=1000000000; cin>>n; for(int i=1;i<=n;i++){ cin>>a>>b; if(b<f){ f=b; } c+=b; } cout<<c*f; 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-----
1115