Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120773 张裕铭 求点积 C++ Accepted 1 MS 280 KB 242 2025-05-31 19:08:18

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