#27757: CPP


11030067@mail.hpsh.tp.edu.tw (和平110級鄧雨珊)

學校 : 臺北市立和平高級中學
編號 : 163096
來源 : [61.64.210.174]
最後登入時間 :
2022-10-23 16:54:59
f345. 新手練習題—陣列 -- wseds | From: [219.85.1.131] | 發表日期 : 2021-10-28 23:48

#include <iostream>
using namespace std;

int a[1000001];
int main(){
int n;
cin >> n;
for (int i=0; i<n; i++){
cin >> a[i];
}
for (int i=n-1; i>=0; i--){
cout << a[i] <<" ";
}
}
 
ZeroJudge Forum