16 条题解

  • 0
    @ 2025-5-22 18:39:11

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

    信息

    ID
    954
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    726
    已通过
    319
    上传者