#39395: c++ ans


yp11251120@yphs.tp.edu.tw (708-43劉濟緯)

學校 : 臺北市私立延平高級中學
編號 : 237257
來源 : [203.72.178.1]
最後登入時間 :
2024-04-18 17:28:22
f345. 新手練習題—陣列 -- wseds | From: [118.150.212.230] | 發表日期 : 2024-02-14 18:58


#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    cin>>a;
    int x[a]{0};
    for(int i=1; i<=a; i++)
    {
        cin>>x[i];
    }
    for(int j=a; j>1; j--)
    {
        cout<<x[j]<<" ";
    }
    cout<<x[1]<<endl;//因為zerojudge會抓你有無多打空格
}

 
ZeroJudge Forum