Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define int long long
- #define FOR(i,a,b) for(int i=(a),_b=(b); i<=_b; ++i)
- #define FORD(i,a,b) for(int i=(a),_b=(b); i>=_b; --i)
- #define REP(i,a) for(int i=0,_a=(a); i < _a; ++i)
- #define DEBUG(X) { cout << #X << " = " << (X) << endl; }
- #define PR(A,n) { cout << #A << " = "; FOR(_,1,n) cout << A[_] << ' '; cout << endl; }
- #define PR0(A,n) { cout << #A << " = "; REP(_,n) cout << A[_] << ' '; cout << endl; }
- #define sqr(x) ((x) * (x))
- #define ll long long
- #define __builtin_popcount __builtin_popcountll
- #define SZ(x) ((int) (x).size())
- using namespace std;
- double safe_sqrt(double x) {
- return sqrt(max((double)0.0,x));
- }
- int GI(ll& x) {
- return scanf("%lld", &x);
- }
- #undef int
- int main() {
- #define int long long
- ios :: sync_with_stdio(0); cin.tie(0);
- cout << (fixed) << setprecision(9);
- int ntest = 15;
- cout << ntest << endl;
- while (ntest--) {
- int n = rand() % 2500 + 1;
- cout << n << endl;
- REP(i,n) {
- if (rand() % 2 == 0) cout << 1000000 - rand() % 10 << ' ';
- else cout << -1000000 + rand() % 10 << ' ';
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement