По часовой стрелке, начиная с верхней вершины:
17, 21, 19, 23, 15
С++
#include <iostream>
using namespace std;
bool Election(int a,int b,int c)
{
int t=0,f=0;
if(a==true)
t++;
else
f++;
if(b==true)
t++;
else
f++;
if(c==true)
t++;
else
f++;
if(t>f)
return TRUE;
else
return FALSE;
}
void main()
{
bool x,y,z;
cin>>x,y,z;
cout<< Election(x,y,z) <<endl;
system("pause");
}
Const
N = 30;
Var
A,B:array[1..N] of integer;
i,S,M:integer;
Begin
Randomize;
Write('A(',N,'):');
M:=0;
For i:= 1 to N do
Begin
A[i]:=random(11)-5;
Write(' ',A[i]);
if A[i] > 0 then
Begin
M:=M+1;
B[M]:=A[i];
End
End;
WriteLn;
Write('B(',M,'):');
For i:= 1 to M do
Write(' ',B[i]);
ReadLn;
End.
Гоша- учится в 5 классе ,кружок-математ.
Витя-6, фотокружок
Алеша-7-авиамодели.
Боря-8,шахмат.
Думаю,что так, но не уверена,напишите потом верно или нет
1280x1024x8= 10485760 бит, делим на 8, будет 1310720 байт, делим на 1024, будет 1280кб или 1мб