рисуем на координатной плоскости
Птичка
1) (-9; 7), (-7; 8), (-6; 10), (-3; 10), (-1; 7), (8; 1), (15; -2), (13; -4), (6; 0), (4; -1),
(3;-1), (1; -7),(-1; -7), (1; -6), (2; -1), (0;-1), (-2; -7), (-4; -7), (-2;-6), (-1;-1), (-5; 2),
(-6; 5), (-7; 6), (-9; 7);
2) Глаз (-5; 8).
Объяснение:
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();
}
}