1 solutions

  • 0
    @ 2024-7-17 20:29:59
    #include<bits/stdc++.h>
    
    using namespace std;
    
    int main(){
    	int n, a[105];
    	cin >> n;
    	for(int i = 0 ; i < n; i++){
    		cin >> a[i];
    	}
    	for(int i = n - 1; i >= 0; i--){
    		cout << a[i] << " ";
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    6933
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    2
    Accepted
    2
    Uploaded By