| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159335 | 杨正蠔 | 求点积 | C++ | Accepted | 1 MS | 272 KB | 468 | 2026-08-28 10:16:42 |
#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,sum=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]; sum+=a[i]*b[i]; } cout<<sum; return 0; }