Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146344 张宇泽 求点积 C++ Accepted 1 MS 272 KB 296 2026-01-28 11:17:31

Tests(10/10):


Code:

#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; }