代码
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
const int N = 20;
int main(void) {
vector<int> nums(N);
for (int i = 0; i < N; ++i) cin >> nums[i];
reverse(begin(nums), end(nums));
for (int i = 0; i < N; ++i)
printf("N[%d] = %d\n", i, nums[i]);
return 0;
}