Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int p=107897;
- int ma=1e9;
- int cn=ma/p;
- int maxn=200000;
- int u=maxn/cn;
- int n=cn*u;
- cout<<n<<' '<<n<<endl;
- for (int k=0;k<2;++k) for (int i=0;i<cn;++i)
- {
- for (int j=1;j<=u;++j)
- {
- cout<<i*p+j;
- if (i==cn-1 && j==u) cout<<endl;
- else cout<<' ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement