Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63376 张江鹏 打印反直角三角形 C++ Presentation Error 12 MS 272 KB 264 2024-01-07 16:35:45

Tests(0/10):


Code:

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