******************************* *** The hack uses generator *** ******************************* ** Command line arguments ** no arguments ** Generated test ** 500 500 20 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000 100... ** Generator source ** #include using namespace std; mt19937 rng(0x1517D); long long randint(long long a, long long b){ uniform_int_distribution dist(a, b); return dist(rng); } long long randint2(long long a){ return randint(0, a-1); } int main(){ int n = 500; int m = 500; int k = 20; printf("%d %d %d\n", n, m, k); for(int i = 0; i < n; i ++){ for(int j = 0; j < m-1; j ++){ printf("%lld%c", randint(1000000, 1000000), (j==(m-2)) ? '\n' : ' '); } } for(int i = 0; i < n-1; i ++){ for(int j = 0; j < m; j ++){ printf("%lld%c", randint(1000000, 1000000), (j==(m-1)) ? '\n' : ' '); } } }