不知道错哪里。。。
查看原帖
不知道错哪里。。。
1413309
makeway楼主2024/10/19 19:37
#include<bits/stdc++.h>
using namespace std;
int n,a,b=1,c,d;
int main()
{
	cin>>n;
	c=n;d=b;
	for(int i=2;i<=n;i++)
	{
		if(d==c){
			cout<<"\n";
			d--;
			c=0;
		}
		if(b<10)
		{
			cout<<"0"<<b;
			b++;
        }
		else
		{
		    cout<<b;
		    b++;
	    }
	    c++;
	}
	return 0;
}
2024/10/19 19:37
加载中...