В
Все
М
Математика
О
ОБЖ
У
Українська мова
Х
Химия
Д
Другие предметы
Н
Немецкий язык
Б
Беларуская мова
М
Музыка
Э
Экономика
Ф
Физика
Б
Биология
О
Окружающий мир
У
Українська література
Р
Русский язык
Ф
Французский язык
П
Психология
О
Обществознание
А
Алгебра
М
МХК
Г
География
И
Информатика
П
Право
А
Английский язык
Г
Геометрия
Қ
Қазақ тiлi
Л
Литература
И
История
ttlekzhan
ttlekzhan
19.01.2022 00:28 •  Информатика

Activity 1 chware for free
Session 5.5 The need for copyright
221
cachia has just bought a new laptop from All Computer Supplies. She knows that an operating system has been installed on the computer
at doesn't include any word processing, spreadsheet, database or presentation software. Junaid at All Computer Supplies has told her
mat he can obtain all the software she needs from a well-known company. A friend of Zaphira's has emailed her to say that she can copy his
gure the reply that Zaphira should send to her friend. Include:
the reason why she should not accept her friend's offer of a copy of the software
an explanation to her friend of how he should check that the software he has is genuine.​

Показать ответ
Ответ:
tetyanaostafi
tetyanaostafi
18.01.2023 06:52
Var input,output:text; n,i,j,g,nm,ans,t:integer;ara:array[0..1000] of integer;ar,arq:array[0..1000] of integer; ts,sum,a:integer;beginassign(input,'f.in');reset(input); assign(output,'f.out');rewrite(output);readln(input,a,n);ans:=10000;
for i:=1 to n do beginread(input,ar[i]);ts:=ts+2*ar[i];end;
  if ts<a then writeln(output,'-1') else
  begin

ara[1]:=3;for i:=2 to 15 do begin ara[i]:=3*ara[i-1];end;
 for i:=1 to ara[n] do begin if arq[n]<2 then begin  inc(arq[n]);sum:=sum+ar[n];inc(nm);  end else  begin   g:=n;while arq[g]>1 do begin sum:=sum-ar[g]*arq[g];dec(nm,arq[g]);arq[g]:=0;dec(g);end;
 inc(arq[g]);sum:=sum+ar[g];inc(nm);end;if sum=a then begin if nm<ans then ans:=nm;end;end;
 if ans>1000 then writeln(output,'0') else writeln(output,ans);   end;
close(output);close(input);end.
0,0(0 оценок)
Ответ:
ekaterina20122
ekaterina20122
25.03.2023 21:24
Const n=5; m=3;
var x,y:array[1..n] of real; i:integer; t:boolean;
begin
for i:=1 to n do read(x[i]);
for i:=1 to n do if x[i]>m then y[i]:=x[i];
t:=true;
while t do begin
t:=false;
for i:=1 to n-1 do if ((y[i]<=m) or (y[i]>y[i+1])) and (y[i+1]>m) then begin
t:=true;
y[i]:=y[i]+y[i+1]; y[i+1]:=y[i]-y[i+1]; y[i]:=y[i]-y[i+1]
end
end;
for i:=1 to n do if y[i]>m then write(y[i],' ') else break;
writeln;
for i:=1 to n-1 do begin
if y[i]<=m then break;
if y[i]=y[i+1] then begin
if t=false then begin t:=true; write(i,' ') end;
write(i+1,' ') end
else t:=false
end
end.
0,0(0 оценок)
Популярные вопросы: Информатика
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота