Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126562 王镜铭 打印反直角三角形 C++ Accepted 13 MS 276 KB 266 2025-07-21 10:28:33

Tests(10/10):


Code:

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