Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8150 孙梓宸 写个"2" C++ Accepted 8 MS 728 KB 289 2021-03-21 08:54:41

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ cout<<'*'; } cout<<endl; for(int i=0;i<n-2;i++){ for(int j=0;j<n-i-2;j++){ cout<<' '; } cout<<'*'<<endl; } for(int i=0;i<n;i++){ cout<<'*'; } }