| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136635 | 王培臻 | 求点积 | C++ | Wrong Answer | 2 MS | 276 KB | 250 | 2025-11-15 14:42:21 |
#include<bits/stdc++.h> using namespace std; int main(){ long long q,a[1001],s[1001],d=0; cin>>q; for(int i=1;i<=q;i++){ cin>>a[i]; cout<<endl; cin>>s[i]; } for(int i=1;i<=q;i++){ d=d+a[i]*s[i]; } cout<<d; return 0; }
------Input------
7 6 57 59 87 37 85 85 24 51 86 80 70 52 52
------Answer-----
26515
------Your output-----
23350