Объяснение:
using System;
class Program
{
static int P(string p)
{
int a = 0, dec = 1;
for (int i = p.Length - 1; i >= 0; i--)
{
a += (p[i] - '0') * dec;
dec *= 10;
}
return a;
}
static void Main(string[] args)
{
int minSum = 1000000000, maxSum = 0, itMin = 0, itMax = 0;
for (int i = 0; i < 10; i++)
{
int nowSum = 0;
string a = Console.ReadLine();
string[] now = a.Split(' ');
for (int j = 0; j < now.Length; j++)
{
int n = P(now[j]);
nowSum += n;
}
if (minSum > nowSum)
{
itMin = i;
minSum = nowSum;
}
if (maxSum < nowSum)
{
itMax = i;
maxSum = nowSum;
}
}
Console.WriteLine("{0} - строка с минимумом, {1} - строка с максимумом", itMin + 1, itMax + 1);
Console.ReadLine();
}
}
1) 0100100001100001011100000111000001111001001000000100001001101001011100100111010001101000011001000110000101111001001000000111010001101111001000000111100101101111011101010010000100100001
486170707920426972746864617920746f20796f752121
2) 010001000110111100100000011110010110111101110101001000000111001101110000011001010110000101101011001000000101001001110101011100110111001101101001011000010110111000111111
446f20796f7520737065616b205275737369616e3f
3) 010010000110111101110111001000000110000101110010011001010010000001111001011011110111010100100000011101000110111101100100011000010111100100111111
486f772061726520796f7520746f6461793f
4) 010100000110000101110011011100110111011101101111011100100110010000101110
50617373776f72642e