2 条题解

  • 3
    @ 2023-7-31 21:41:49

    已AC,放心食用

    #include <iostream>
    #include <cstdio>
    using namespace std;
    int main(){
    	int n;
    	cin>>n;
    	for(int i=0;i<n;i++){
    		for(int j=0;j<n-i;j++)
    			cout<<"    "<< j+1;
    		cout<<endl;
    		for(int k=0;k<=i;k++)
    			cout<<"     ";
    	}
    	return 0;
    }
    
    • 0
      @ 2023-11-16 15:41:01

      #include <bits/stdc++.h> using namespace std; int n; int a[101][101]; int main() { cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <=i-1; j++) cout<<setw(3)<<" "; for (int j = 1; j <=n-i+1; j++){ a[i][j]=j; cout << setw(3) << a[i][j]; } cout << endl; } return 0; }

      
      
      • 1

      【入门】有趣的数字图形I

      信息

      ID
      204
      时间
      1000ms
      内存
      16MiB
      难度
      1
      标签
      递交数
      52
      已通过
      37
      上传者