Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117376 | 江梵睿 | 求点积 | C++ | Accepted | 1 MS | 280 KB | 469 | 2025-04-18 18:32:25 |
//求点积 #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 i,a=0,b[10000],c[10000],n,j; cin>>n; for(i=0;i<n;i++){ cin>>b[i]; } for(j=0;j<n;j++){ cin>>c[j]; a+=b[j]*c[j]; } cout<<a; return 0; }