代码如下
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b=0,d=0;
double c=4*atan(1);
long long e;
cin>>a;
cout<<"3."<<endl;
while(true)
{
for(int i=0;i<5;i++)
{
if(a-b<=10)
{
e=pow(10,a-b)*c;
cout<<e;
d=1;
}
else
{
e=pow(10,10)*c;
cout<<e;
}
if(d)
break;
cout<<' ';
b+=10;
for(int j=0;j<10;j++)
{
c*=10;
while(c>=1)
c--;
}
}
if(d)
break;
cout<<"\n";
}
}