for (int i = 0; i < n; ++i) { int ci; scanf("%d", &ci); int mn = INF, mx = 0; for (int j = 0; j < ci; ++j) { int x; scanf("%d", &x); mx = max(mx, x); mn = min(mn, x); } a[i] = make_pair(mn, mx); } It is required to implement a similar code on python. Those. only the maximum and minimum element in the string is required. But at the same time, the program execution time does not allow writing everything to the list and finding the minimum and maximum in it. Example line 1 2 3 4 at the input and you need to find 1 and 4. How to implement it?
