Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
137118 | Microsoft | 逆序输出数组 | C++ | 编译错误 | 0 | 0 MS | 0 KB | 202 | 2024-03-09 17:34:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; a[0]=2; for(int i=1;i<=50;i++){ a[i]=a[i-1]*2; } for(int i=n-1;i<=0;i--){ cout<<a[i]<<endl; } return 0; }