1 条题解

  • 1
    @ 2023-11-26 21:16:58
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int n;
    	cin >> n;
    	for (int i = 0; i < n; i++) {
    		for (int j = 0; j < i; j++) {
    			cout << " ";
    		}
    		for (int j = 0; j < 2 * (n - i) - 1; j++) {
    			cout << "*";
    		}
    		cout << endl;
    	}
    	return 0;
    }
    
    
    • 1

    信息

    ID
    71
    时间
    1000ms
    内存
    16MiB
    难度
    1
    标签
    递交数
    63
    已通过
    44
    上传者