Advertisement
Ryuuk

RIG.cpp

Mar 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.41 KB | None | 0 0
  1. // author: Ryuuk
  2. #include<bits/stdc++.h>
  3. #define sz(a) int((a).size())
  4. #define pb push_back
  5. #define all(c) (c).begin(),(c).end()
  6. #define tr(c,i) for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)
  7. #define present(c,x) ((c).find(x) != (c).end())
  8. #define cpresent(c,x) (find(all(c),x) != (c).end())
  9. #define LSOne(i) (i&(-i))
  10. #define REP(i,a,b) for(int(i)=(a);(i)<(b);i++)
  11. #define BUG(x) {cout<<#x<<" = "<<x<<endl;}
  12. #define left(x) (x<<1)
  13. #define right(x) ((x<<1) +1)
  14. #define middle(s,e)(s+(e-s)/2)
  15. #define size_tree(n) 2*(int)pow(2,ceil(log2(n)))
  16. #define CL(A,I) (memset(A,I,sizeof(A)))
  17.  
  18. static const int INF = 0x3f3f3f3f;
  19. static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
  20. static const long double epsilon = 1e-15;
  21. static const long double pi = acos((long double) -1);
  22. using namespace std;
  23. inline void init_io(){ios_base::sync_with_stdio(false);cin.tie(NULL);}
  24.  
  25. typedef vector<int> vi;
  26. typedef vector<vi> vvi;
  27. typedef pair<int,int> ii;
  28. typedef long long ll;
  29.  
  30. int main()
  31. {
  32.     #ifndef ONLINE_JUDGE
  33.         //freopen("input.txt","r",stdin);
  34.     #endif // ONLINE_JUDGE
  35.     srand(0);
  36.     int t= rand()%100+1;
  37.     cout<<t<<endl;
  38.     while (t--) {
  39.       int n=rand()%1000000+1;
  40.         for (int i=0;i<n-1;i++)
  41.           cout<<static_cast<ll>(rand())%((ll)(2000000000000))-1000000000000<<" ";
  42.         cout<<static_cast<ll>(rand())%((ll)(2000000000000))-1000000000000<<endl;
  43.     }
  44.     return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement