matrix = [sum(list(map(int, input().split()))) for i in range(10)] # если 20 по вертикали, замени 10 на 20
m = max(matrix)
print(m, matrix.index(m))
Procedure PrintMatrix(matrix : array[,] of integer);
begin
matrix.Println;
end;
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int x = a;
while (x <= b) {
cout << x << endl;
++x;
}
return 0;
}
//Запасной вариант
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a > b) {
int z = a;
a = b;
b = z;
}
int x = a;
while (x <= b) {
cout << x << endl;
++x;
}
return 0;
}
Var
a: array[1..10] of integer;
i, max: integer;
begin
for i := 1 to 10 do
begin
read(a[i]);
if (i = 1) or (a[i] > max) then
max := a[i];
end;
writeln('Max value = ', max)
end.
Половина и единица................