Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102851 郝王骏程 大力水手吃蔬菜 C++ Wrong Answer 1 MS 280 KB 453 2024-12-23 20:53:10

Tests(2/10):


Code:

#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+=a*f; } cout<<c*f; return 0; }


Run Info:

------Input------
1 15 65
------Answer-----
975
------Your output-----
63375