Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63372 祝家懿 打印反直角三角形 C++ Accepted 13 MS 268 KB 253 2024-01-07 16:25:57

Tests(10/10):


Code:

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