Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138327 徐康浩 打印反直角三角形 C++ Accepted 10 MS 276 KB 286 2025-11-24 16:50:22

Tests(10/10):


Code:

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