4 solutions

  • 1
    @ 2025-11-17 17:53:44
    #include<bits/stdc++.h>
    using namespace std;
    int a[1111110];
    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]<<" ";
        return 0;
    }
    

    Information

    ID
    891
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    152
    Accepted
    67
    Uploaded By