Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105558 | 秦浩然 | 数组中元素交换 | C++ | Wrong Answer | 0 MS | 276 KB | 212 | 2025-01-13 22:25:32 |
#include<iostream> using namespace std; long long a[110]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int j=n;j>=1;j--){ cout<<a[j]<<" "; } return 0; }
------Input------
5 81 43 69 80 80
------Answer-----
43 81 80 69 80
------Your output-----
80 80 69 43 81