******************************* *** The hack uses generator *** ******************************* ** Command line arguments ** no arguments ** Generated test ** 1 12398 0 10000 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 5... ** Generator source ** /** * author: tourist * created: 12.02.2022 23:45:32 **/ #include using namespace std; #ifdef LOCAL #include "algo/debug.h" #else #define debug(...) 42 #endif int main() { ios::sync_with_stdio(false); cin.tie(0); int tt = 1; cout << tt << '\n'; while (tt--) { vector> pts = {{1, 10000}, {200, 500}, {300, 499}, {400, 498}, {498, 400}, {499, 300}, {500, 200}, {10000, 1}}; vector a; for (auto& p : pts) { vector b(p.first, p.second); a.insert(a.end(), b.begin(), b.end()); } int n = (int) a.size(); cout << n << " " << 0 << '\n'; for (int i = 0; i < n; i++) { cout << a[i] << " \n"[i == n - 1]; } } return 0; }