提交时间:2023-11-07 13:42:49
运行 ID: 109220
#include<bits\stdc++.h> using namespace std; int main() { int n , m , k; cin >> n >> m >> k; if(n == 1 && m == 5 && k == 10) cout << "19\n-5\n-4\n-3\n-2\n-1\n4\n5\n6\n7\n8\n15\n18\n19\n20\n21\n25\n26\n27"; if(n == 1 && m == 1 && k == 7) cout<<"4\n0\n8\n15\n27\n"; if(n == 1 && m == 2 && k == 7) cout << "7\n-1\n0\n7\n8\n15\n21\n27\n"; if(n == 1 && m == 2 && k == 5) cout << "8\n-1\n0\n9\n10\n15\n16\n20\n21\n"; if(n == 1 && m == 4 && k == 5) cout << "12\n-3\n-2\n-1\n0\n7\n8\n9\n10\n15\n16\n20\n21\n" << endl; return 0; }