delete pics to save space
This commit is contained in:
18
history_source/信息学奥赛一本通/1.5.1.7.cpp
Normal file
18
history_source/信息学奥赛一本通/1.5.1.7.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
unsigned long long ans=0;
|
||||
scanf("%d",&n);
|
||||
int w[n],x;
|
||||
for(int i=0;i<n;i++) scanf("%d",w+i);
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
scanf("%d",&x);
|
||||
ans+=x*w[i];
|
||||
}
|
||||
printf("%lld\n",ans);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user