解题思路:
注意事项:
参考代码:
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 100000;
ll a[N];
ll b[N];
int main()
{
ll s,sum=0;
cin>>s;
for(ll i=1;i<=s;i++)
{
cin>>a[i];
}
for(ll i=1;i<=s;i++)
{
cin>>b[i];
sum+=a[i]*b[i];
}
cout<<sum;
return 0;
}
0.0分
0 人评分
破解简单密码 (C语言代码)浏览:1864 |
妹子杀手的故事 (C语言代码)浏览:737 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:724 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:606 |
WU-陶陶摘苹果2 (C++代码)浏览:1018 |
a+b浏览:452 |
愚蠢的摄影师 (C++代码)浏览:980 |
罗列完美数 (C语言代码)浏览:519 |
C语言程序设计教程(第三版)课后习题8.2 (C++代码)浏览:671 |
C语言程序设计教程(第三版)课后习题8.4 (C++代码)浏览:472 |