Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63379 程余天皓 打印反直角三角形 C++ Presentation Error 13 MS 272 KB 269 2024-01-07 16:38:51

Tests(0/10):


Code:

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