竞赛
考级
超级无敌supper暴龙兽
CuSO4
#include<iostream> using namespace std; int main(){ int n; cin >> n; int a[1001]; for(int i = 0;i < n;i++){ cin >> a[i]; } for(int i = n-1;i >= 0;i--)cout << a[i] << " "; return 0; }
dfs却一场空
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int shuzhu[n]; for (int i = 0; i < n; ++i) { cin >> shuzhu[i]; } for (int j = n - 1; j >= 0; --j) { cout << shuzhu[j]; cout << " "; } return 0; }
醉词意
zsy
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int s[n]; for(int i=0;i<n;i++){ cin>>s[i]; } for(int j=n-1;j>=0;j--){ cout<<s[j]; cout<<" "; } return 0; }
曹汇煦
151****9879
6.
#include <bits/stdc++.h> using namespace std; int a[110]; int main() { int n; cin >> n; for(int i = 1; i <= n; i++) cin >> a[i]; for(int i = n; i >= 1; i--) cout << a[i] << " "; }
CZH
༺ཌༀTN黑客ༀད༻
耐高总冠军 张文杰
#include <iostream> #include <vector> using namespace std; int main(){ vector<int> v; int n; cin >> n; for(int i = 0;i < n;i++){ int x; cin >> x; v.push_back(x); } for(int i = v.size()-1;i >= 0;i--){ cout << v[i] << " "; } return 0; }
你
xzr
我是自愿上学的
一只CR400BF-5033
acgoacgo
共56条