Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
33600 | HJH的爸爸 | 【入门】图形输出2 | C++ | 通过 | 0 MS | 252 KB | 244 | 2023-12-30 16:56:39 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,ko=0; cin>>m>>n; ko=m; for(int i=0;i<m;i++){ ko--; for(int k=0;k<ko;k++) cout<<" "; for(int j=0;j<n;j++){ cout<<"*"<<" "; } cout<<"\n"; } }