不会就可以~了
2025-07-22 20:42:30
发布于:江苏
7阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
const int N=2e5+5;
int a[N],b[N],c[N],n;
int main(){
cin>>n;
for(int i=1;i<=n;i++)cin>>a[i];
for(int i=1;i<=n;i++)cin>>b[i];
for(int i=1;i<=n;i++)c[i]=a[i]+b[n-i+1];
for(int i=1;i<=n;i++)cout<<c[i]<<" ";
return 0;
}
这里空空如也
有帮助,赞一个