| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140580 | 何旻慧 | 求点积 | C++ | Accepted | 0 MS | 272 KB | 508 | 2025-12-17 19:00:24 |
#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-1;i++){ cin>>a[i]; } for(int i=0;i<=n-1;i++){ cin>>b[i]; } for(int i=0;i<=n-1;i++){ dj+=a[i]*b[i]; } cout<<dj; return 0; }