Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63377 邓昊源 打印反直角三角形 C++ Presentation Error 11 MS 272 KB 240 2024-01-07 16:36:29

Tests(0/10):


Code:

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