Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
............▐░░░░░░░▌
....... ▄█▓░░░░░░▓█▄
....▄▀░░▐░░░░░░▌░▒▌
.▐░░░░▐░░░░░░▌░░░▌
▐ ░░░░▐░░░░░░▌░░░▐
▐ ▒░░░ ▐░░░░░░▌░▒▒▐
▐ ▒░░░░▐░░░░░░▌░▒▐
..▀▄▒▒▒▒▐░░░░░░▌▄▀
........ ▀▀▀ ▐░░░░░░▌
.................▐░░░░░░▌
.................▐░░░░░░▌
.................▐░░░░░░▌
.................▐░░░░░░▌
................▐▄▀▀▀▀▀▄▌
...............▐▒▒▒▒▒▒▒▒▌
...............▐▒▒▒▒▒▒▒▒▌
................▐▒▒▒▒▒▒▒▌
..................▀▌▒▀▒▐▀
Гайд как правильно срать в бочку
2. Нажми Ctrl + F
3. Далее нажми 6 и посмотри на текст.
99999966999999666666696666666966666669
99999966999999669996696699999966999669
99999966999999669996696699999966999669
96666666666669666666696666666966666669
99999966999999669669996699999966999999
99999966999999669966996699999966999999
99999966999999669996696666666966999999
function max(a, b : longint) : longint;
begin
if a > b then max := a else max := b;
end;
function min(a, b : longint) : longint;
begin
if a > b then min := b else min := a;
end;
begin
readln(n);
for i := 1 to n do
begin
read(x);
readln(y);
if x > 0 then
begin
if y = 0 then
begin
if minPosX = 0 then
minPosX := x;
maxPosX := max(maxPosX, x);
minPosX := min(minPosX, x);
end else
maxPosAbsY := max(maxPosAbsY, abs(y));
end;
if x < 0 then
begin
if y = 0 then
begin
if maxNegX = 0 then
maxNegX := x;
maxNegX := max(maxNegX, x);
minNegX := min(minNegX, x);
end else
maxNegAbsY := max(maxNegAbsY, abs(y));
end;
end;
s := max((maxPosX - minPosX) * maxPosAbsY, (maxNegX - minNegX) * maxNegAbsY);
write(s / 2 :1:1);
end.