Run ID:144481
提交时间:2026-01-23 11:38:09
#include<bits/stdc++.h> using namespace std; int main(){ int b[1001],p[1001]; int a; long long c=0; cin>>a; for(int s = 1;s<=a;s++){ cin>>p[s]; } for(int s = 1;s<=a;s++){ cin>>b[s]; } for(int s = 1;s<=a;s++){ c+=p[s]*b[s]; } cout<<c; return 0; }