Morass

Generator

Dec 8th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. long long R(int b=62){long long r(0);for(int i=0;i<b;++i)r<<=1,r|=rand()&1;return r;}
  4. #define r rand()
  5. int main(void){
  6.     srand(time(0));
  7.     int tt=666;
  8.     printf("%d\n",tt);
  9.     for(int i=0;i<tt;++i){
  10.         int N=rand()%10+1;
  11.         printf("%d\n",N);
  12.         for(int i=0;i<N;++i)printf("%lld%c",R()%int(1e6)+1,i+1==N?10:32);
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment