intmain(){ int L = 1e8, R = -1e8; n = read(); for (int i = 1; i <= n; i++) { for (int j = i + 1; j <= n; j += 2) { a[i][j] = read(); R = max(R, a[i][j]); L = min(L, a[i][j]); } } while (L <= R) { int mid = (L + R) >> 1; if (check(mid)) R = mid - 1; else L = mid + 1; } cout << L; return0; }