Run ID:146344
提交时间:2026-01-28 11:17:31
#include<bits/stdc++.h> using namespace std; int main(){ int n; long long s=0; cin>>n; int a[101],b[101]; for(int i = 1; i<=n;i++){ cin>>a[i]; } for(int i = 1;i<=n;i++){ cin>>b[i]; } for(int i = 1;i<=n;i++){ s+=a[i]*b[i]; } cout<<s; return 0; }