2 条题解

  • 0
    @ 2024-10-4 16:53:44
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b,c=0;
    	cin>>a;
    	for(int i=-a;i<a-c;i++){
    		for(int j=abs(i)-a;j<a-c;j++){
    			cout<<abs(j)<<" ";
    		}
    		c+=1;
    		cout<<endl;
    	}
    	return 0;
    }
    

    抄的和复制的都是zcrzcr

    • 0
      @ 2024-10-4 16:52:10
      #include<bits/stdc++.h>
      using namespace std;
      
      int main(){
      	int a;
      	int i,j;
      	cin>>a;
      	for(i=0;i<a;i++){
      		for(j=i;j>0;j--){
      			cout<<j<<" ";
      		}
      		for(j=0;j<a-i;j++){
      			cout<<j<<" ";
      		}
      		cout<<endl;
      	}
      
      	return 0;
      }
      

      严禁抄题解!!!!!!!!!

      • 1

      信息

      ID
      127
      时间
      1000ms
      内存
      256MiB
      难度
      9
      标签
      递交数
      10
      已通过
      9
      上传者