Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98103 | 张永良 | 数组倒序输出 | C++ | Accepted | 1 MS | 268 KB | 207 | 2024-11-17 12:37:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int b=0; cin>>b; int a[b]; for(int i=0;i<=b;i++){ cin>>a[i]; } for(int j=b-1;j>=0;j--){ cout<<a[j]<<" "; } return 0; }