Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120259 张裕铭 求点积 C++ Accepted 1 MS 276 KB 250 2025-05-25 08:37:58

Tests(10/10):


Code:

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