Run ID:107086

提交时间:2025-01-17 12:14:02

#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[n]; int b[n]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n; i++) { cin >> b[i]; } int d = 0; for (int i = 0; i < n; i++) { d = d + a[i] * b[i]; } cout << d; return 0; }