15 条题解

  • -1
    @ 2022-2-12 11:18:35

    #include #include <stdio.h> using namespace std; int main () { int n; cin >> n; for (int i = 1 ; i <= n ; i ++) { for (int j = 1 ; j <= n + i - 1 ; j ++) { if (n - i + 1 <= j && n + i >= j) cout << "*"; else cout << " "; } cout << endl; } }

    信息

    ID
    954
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    689
    已通过
    291
    上传者