写挂了,应该是
```cpp
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define f(x, y, z) for (ll x = (y); x <= (z); x++)
ll get_rand(ll x, ll y)
{
return rand() % (y - x + 1) + x;
}
int main()
{
mt19937 rand(random_device{}());
// rand()
ll t = 3;
cout << t << endl;
while (t--)
{
ll n = rand() % 5 + 2, m = get_rand(n - 1, n * (n - 1) / 2);
cout << n << " " << m << endl;
m -= n - 1;
f(i, 2, n)
{
cout << i << " " << rand() % (i - 1) + 1 << " " << rand() % 10 << " " << rand() % 10 << endl;
}
f(i, 1, m)
{
again:
ll x = rand() % n + 1, y = rand() % n + 1;
if (x == y)
goto again;
cout << x << " " << y << " " << rand() % 10 << " " << rand() % 10 << endl;
}
ll q = rand() % 10, k = rand() % 2, s = rand() % 10 + 1;
cout << q << " " << k << " " << s - 1 << endl;
while (q--)
{
ll x = rand() % n + 1, y = rand() % s;
cout << x << " " << y << endl;
}
}
}
```
by ln001 @ 2024-07-29 16:50:26
@[ln001](/user/644963) %%%
by Albatross_LC @ 2024-08-29 15:53:48