//Task 4
int m;
std::cin >> m;
std::cout << (m%2==0?m-2:m-1);
// Task 5
int a = 0,b,n;
std::cin>>n;
for(int i = 0; i <= n; i ++)
a += i*i;
b = (n * (n + 1) * (2*n + 1))/6;
std::cout<<a<<'='<<b;
// Task 6
int x = 0;
for(int i = 2; x + i < 45;i++)
{
x+=i;
std::cout<<x<<' ';
}
// Task 7
int mult = 1;
int n;
double sum;
std::cin>>n;
for(int i = 1; i < n; i++)
{
sum+=(1/i) * mult;
mult *= -1;
}
std::cout<<sum;
Во первых это не информатика во внадо и звать на помощь
//PascalABC.NET 3.2 сборка 1318
Var x1,y1,x2,y2,x,y,x3,y3,x4,y4:integer;
begin
read(x1,y1,x2,y2,x,y);
x3:=x1;
y3:=y2;
x4:=x2;
y4:=y1;
if (x<x1) and (y<=y3) and (y>=y1) then writeln('W') else
if (x<x1) and (y>y3) then writeln('NW') else
if (x>=x1) and (x<=x2) and (y>y3) then writeln('N') else
if (x>x2) and (y>y3) then writeln('NE') else
if (x>x2) and (y<=y2) and (y>=y4) then writeln('E') else
if (x>x2) and (y<y4) then writeln('SE') else
if (x<=x4) and (x>=x1) and (y<y4) then writeln('S') else
if (x<x1) and (y<y1) then writeln('SW');
end.
Пример ввода:
-2 1 4 4 -3 5
Пример вывода:
NW
(t - время передачи, I - объем данных, v - скорость передачи)
Дано:
t = 24 c
v = 256000 бит/с
I - ?
Решение:
бит
6144000.0 бит = 768000.0 байт = 750.0 Кбайт