Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137234 张咏灏 打印三角形 C++ Presentation Error 2 MS 268 KB 282 2025-11-16 17:23:20

Tests(0/15):


Code:

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