Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76076 刘世杰 打印反直角三角形 C++ Presentation Error 3 MS 280 KB 287 2024-06-01 16:23:59

Tests(0/10):


Code:

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