Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Определение стенки с максимальной высотой
const n = 8; var h, h_next, max, i : integer; begin readln (h); max := h; for i := 2 to n do begin readln (h_next); if h < h_next then begin if max < h_next then begin max := h_next; end else begin {пока ничего не делаем} end end else {h>=h_next} begin {пока ничего не делаем} end; h := h_next; end; writeln(max); end.
run
|
edit
|
history
|
help
0
6
test5
Kotak_Adit
checks if a number is exceptional
1
TAPCON
AR sredine
НОД через функцию
Kim
programme 1