Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
148793 | 於子轩bylz | 逆序输出数组 | C++ | Accepted | 100 | 0 MS | 252 KB | 209 | 2024-05-25 14:50:16 |
#include<iostream> long long a[55]; 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; }