求助!!!各位大佬帮忙改一下,为什么全WA了???
查看原帖
求助!!!各位大佬帮忙改一下,为什么全WA了???
578842
zps1122楼主2022/3/13 20:43

** ```cpp #include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; for(int i=1;i<=4*n;i++){ if(i<10){ cout<<"0"<<i; }else{ cout<<i; } if(i%4==0)cout<<endl; } cout<<endl; int temp=1; for(int i=1;i<=n;i++){ for(int j=1;j<=(n-i)*2;j++)cout<<" "; for(int k=1;k<=i;k++){ if(temp<10)cout<<"0"<<temp; else{ cout<<temp; } temp++; } if(i==n)break; cout<<endl; } return 0; } **

2022/3/13 20:43
加载中...