Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
99776 罗迎甲 求点积 C++ Wrong Answer 0 MS 280 KB 512 2024-11-30 16:21:04

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 a[1000],b[1000]; int n,x; cin>>n; for(int z=0;z<n;z++){ cin>>a[z]; } for(int z=0;z<n;z++){ cin>>b[z]; } for(int z=0;z<n;z++){ x+=a[z]*b[z]; } cout<<x<<endl; return 0; }


Run Info:

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