Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140592 李茗宇 求点积 C++ Wrong Answer 0 MS 276 KB 417 2025-12-17 19:12:30

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


Run Info:

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