******************************* *** The hack uses generator *** ******************************* ** Command line arguments ** no arguments ** Generated test ** 100000 99999 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0... ** Generator source ** #include using namespace std; typedef unsigned long long ull; typedef long long ll; typedef long double ld; typedef pair pii; int a[300005]; int main() { ios_base::sync_with_stdio(false); mt19937 gen(1); cout << "100000 99999\n"; for (int i = 0; i < 300000; ++i) a[i] = uniform_int_distribution<>(0, 0)(gen); sort(a, a + 300000); unique(a, a + 300000); int n = 100000; for (int i = 0; i < 100000; ++i) cout << (i ? " " : "") << a[i]; cout << "\n"; for (int i = 0; i < 100000 - 1; ++i) { cout << 1 << " " << i+2 << "\n"; } return 0; }