#include <iostream>
int main (){ int a, max = -33000, count; do { std::cin>>a; if (a == max) count++; if (a > max) { max = a; count = 1; } } while (a!=0); std::cout<<count;}
1)3,4*1024=3584 мегабайт
3584*1024=3670016 килобайт
3670016*1024=3758096384 байт
2)3758096384*8=30064771072 бит
3)В одном часе 60 минут , соответственно в двух часах 120 минут , значит надо 30064771072:120=250539758.933 бит
var
a,b,c:array [1..20] of integer;
i,k,l:integer;
begin
randomize;
k:=1;
l:=1;
writeln ('Исходный массив: ');
for i:=1 to 20 do
begin
a[i]:=random(9)+1;
if a[i] mod 2 = 0 then
begin
b[k]:=a[i];
inc(k);
end else
begin
c[l]:=a[i];
inc(l);
end;
write (a[i],' ');
end;
k:=k-1;
l:=l-1;
writeln;
writeln ('Массив четных чисел');
for i:=1 to k do write (b[i],' ');
writeln;
writeln ('Массив нечетных чисел');
for i:=1 to l do write (c[i],' ');
writeln;
readln;
end.
Ну... На С++ это будет так:
1) #include <cmath>
...
double m, g, a, result;
...
result = m*g*cos(a);
2) double a, b, c, result;
...
result = (a*b + b*c)/(a*b);
3) #include <cmath>
...
double x, result;
...
result = abs(1 - abs(x));