1 solutions
-
1
#include <bits/stdc++.h> using namespace std;
int main() { int n, s = 0; int a[100005]; int b[100005]; cin >> n; 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 = s + a[i] * b[i]; }
cout << s; return 0;
}
- 1
Information
- ID
- 343
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 1
- Tags
- # Submissions
- 60
- Accepted
- 43
- Uploaded By