Предмет: Информатика, автор: Мария0099123321

Помогите доделать программу !!!!!!!(именно доделать! ну если что-то у меня не правильно исправить!)

Задача: В соревнованиях по бегу участвуют 100 человек. Чтобы выявить лучшего, организуется 5 забегов по 20 бегунов. С каждого забега выбирается лучший бегун(ЭТО УСЛОВИЕ ОБЯЗАТЕЛЬНО) и среди них определяется победитель, путем очередного забега.

ПРОГРАММА:
const n = 100;
var a: array [0..n] of integer;
i, j, x, y: integer;
begin
FOR I = 1 TO n/20
FOR J=1 TO N/5
READLN A[I,J]
END;
END;
X= A[I,J]
FOR I = 1 TO n/20
FOR J=1 TO N/5
IF A[I,J]< X THEN X:= A[I,J]
END;
END;
X= A[I,J]
I = 1
FOR J=1 TO N/5
IF A[I,J]< X THEN X:= A[I,J]
END;
...................
..............
.............
......................
...............

Ответы

Автор ответа: allangarsk
0
var a,b: array [0..100] of integer;

i, j, s,k,max: integer;

begin

FOR I:= 1 TO 5 do begin

FOR J:=1 TO 20 do begin 

k:=k +1;

(A[k]):= random(90)+78;

write((A[k]:4));

if max < a[k] then begin max:=a[k];s:=k; end;

END;

write('A[' + s +'] =':8, max:4 );B[s]:=max;

writeln;

s:=0;max:=0;

END;

writeln;k:=0;

FOR I:= 1 TO 5 do begin

FOR J:=1 TO 20 do begin 

k:=k +1;

if b[k] > 0 then (b[k]):= random(90)+78; //забег номеров победителей

if max < b[k] then begin max:=b[k];s:=k; end; //победитель среди
победителей

write((b[k]:4));

END;

writeln;

END;

write('A[' + s +'] =':8, max:4 );

end.

только мало что осталось от той программы много 
ошибок Главная  n нельзя в константы она не будет делиться и т.д.

Похожие вопросы
Предмет: Английский язык, автор: Аноним
UE Task. Read the article Holidays in Space The World Tourism Organization says that space will soon be a popular place to go on boliday - possibly by 2020. One Japanese company is getting ready. They are planning a space holiday centre. It will look like a bicycle wheel and have a hotel for 100 people and a theme park. It will travel round the Earth at a height of 300 lm. The company hopes the centre will be ready in 2017. The company chairman says that flying to the centre will probably be quicker than flying from Hong Kong to Singapore. When they are on board of the centre, the tourists will take short trips to the Moon or go for walks in space. An Amencun hotel group is also thinking of building a hotel, called the Lunar Hotel. This will be on the boon. Most of the botel will be under the ground so it won't become too hot or too cold. The rooms will look just like they do on Earth. The guests will eat normal food for lunch. The cooks will just push a button to mix dried food with water to become an instant meal! Part 1 Rend the article again and give answers to the questions. Write no more than THREE WORDS or A NUMBER Example: When will space be a popular place for holiday? In 2020 1. How many people will be able to stay at the hotel? 2. When will the center be ready? 3. Where will tourists be able to travel while they are at the center? 4. Where will most of the hotel on the moon be! [1] [1] [1] Part 2. Read definition of the word from the text. Write it in the given place. кому нужна полная фотка Сора пишите в личку в ватсап даму номер​
Предмет: История, автор: kzjsnsbdbd64
Предмет: Алгебра, автор: danil1410