Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120368 毛靖平 打印反直角三角形 C++ Accepted 15 MS 268 KB 290 2025-05-25 14:45:30

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int i=1;i<=a;i++){ for(int q=1;q<=a-b-1;q++){ cout<<" "; } b++; for(int h=1;h<=b;h++){ cout<<"*"; } cout<<endl; } return 0; }