| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 137117 | 凌嘉圻 | 逆序输出数组 | C++ | Accepted | 100 | 0 MS | 248 KB | 225 | 2024-03-09 17:34:57 |
#include<iostream> #include<cmath> using namespace std; long long a[51]; 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; }