Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
#include <iostream>
#include <vector>
using namespace std;
signed main() {
const int n = 7;
vector<int> a(n);
int max_elem = -INT_MAX, not_null_cnt = 0;
for(auto &i: a){
cin >> i;
max_elem = max(max_elem,i);
not_null_cnt += i != 0;
}
cout << "max elem = " << max_elem << "\n";
cout << "amount of not null elems: " << not_null_cnt;
var
a,m,n,k: real;
begin
readln(m,n,k);
if (m+n+k)< (m*n*k) then
a: =m+n+k
else
a: =m*n*k;
writeln(a);
end.
64000 бит/с*16 c=1024000 бита/8=128000 байт=125 килобайт
Популярные вопросы