Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140579 何旻慧 求点积 C++ Wrong Answer 0 MS 268 KB 502 2025-12-17 18:59:47

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,dj=0; cin>>n; int a[n],b[n]; for(int i=0;i<=n;i++){ cin>>a[i]; } for(int i=0;i<=n;i++){ cin>>b[i]; } for(int i=0;i<=n;i++){ dj+=a[i]*b[i]; } cout<<dj; return 0; }


Run Info:

------Input------
7 6 57 59 87 37 85 85 24 51 86 80 70 52 52
------Answer-----
26515
------Your output-----
1454301418