Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
3337 | hxx2008 | 写个“2” | C++ | Presentation Error | 0 MS | 248 KB | 337 | 2023-01-01 15:41:04 |
#include<bits/stdc++.h> using namespace std; main(){ int n;cin>>n; for(int i=1;i<=n;i++){ cout<<'*'; } cout<<endl; for(int i=2;i<=n-1;i++){ for(int j=1;j<=n-i;j++){ cout<<' '; } cout<<'*'<<endl; } for(int i=1;i<=n;i++){ cout<<'*'; } }