赞
踩
- #include<iostream>
- using namespace std;
- int main()
- {
- int n,i,s=0,d=0;
- cin>>n;
- int a[n+1];
- int b[n+1];
- for(i=1;i<=n;i++)
- {cin>>a[i];}
- {
-
- for(i=1;i<=n;i++)
-
- {cin>>b[i];
- d=a[i]*b[i];
- s+=d;}}
-
- cout<<s;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。