program delehka(input,output); var a:Array[1..1000010] of longint; i,n,s,ma,mi,sl:longint; begin assign(input,'input.txt'); reset(input); assign(output,'output.txt'); rewrite(output); readln(n); mi:=(1 shl 30); ma:=-(1 shl 30); for i:=1 to n do begin read(a[i]); ma:=max(ma,a[i]); mi:=min(mi,a[i]); end; if ma=mi then write(0,'',n,'',0) else begin for i:=1 to n do begin if a[i]=ma then s:=s+1; if a[i]=mi then sl:=sl+1; end; writeln(s,' ',sl,' ',n-s-sl); close(input); close(output); end; end.
var a:Array[1..1000010] of longint;
i,n,s,ma,mi,sl:longint;
begin
assign(input,'input.txt');
reset(input);
assign(output,'output.txt');
rewrite(output);
readln(n);
mi:=(1 shl 30);
ma:=-(1 shl 30);
for i:=1 to n do begin read(a[i]);
ma:=max(ma,a[i]);
mi:=min(mi,a[i]);
end;
if ma=mi then write(0,'',n,'',0)
else
begin for i:=1 to n do
begin
if a[i]=ma then s:=s+1;
if a[i]=mi then sl:=sl+1;
end;
writeln(s,' ',sl,' ',n-s-sl);
close(input);
close(output);
end;
end.
var x,y:integer;
begin
read(x);
read(y);
if x > 0 and y < 0 then
write(x*y*2);
end.
число x > 0
/ \
/ \
/ \
да нет
/
/
y < 0 \
/ нет
/
/
да (вывести удвоенное)