Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119698 | 唐诗阳 | 求点积 | C++ | Wrong Answer | 1 MS | 280 KB | 353 | 2025-05-18 15:15:28 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n=1001,a[n],b[n],s=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; cin>>b[i]; s+=a[i]*b[i]; } cout<<s; return 0; }
------Input------
7 6 57 59 87 37 85 85 24 51 86 80 70 52 52
------Answer-----
26515
------Your output-----
23350