Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156043 孔声豪 打印反直角三角形 C++ Accepted 11 MS 272 KB 270 2026-06-20 11:08:49

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int n,h,l,k; cin>>n; for(h=1;h<=n;h++){ for(k=1;k<=n-h;k++){ cout<<' '; } for(l=1;l<=h;l++){ cout<<'*'; } cout<<endl; } return 0; }