function IsPositive(a:integer):boolean; begin result:=(a>-1); end;
procedure work; var min, max, count:integer; begin count:=0; min:=m[0]; max:=0; for i:=0 to 14 do begin if IsPositive(m[i]) then begin inc(count); if m[i]>max then max:=m[i]; if m[i]<min then min:=m[i]; end; end; writeln('MAX: ', max); writeln('MIN: ', min); writeln('Count: ', count); end;
begin for i:=0 to 14 do begin write('n: '); readln(m[i]); end;
var m:array [0..14] of integer; i:integer;
function IsPositive(a:integer):boolean;
begin
result:=(a>-1);
end;
procedure work;
var min, max, count:integer;
begin
count:=0;
min:=m[0];
max:=0;
for i:=0 to 14 do begin
if IsPositive(m[i]) then begin
inc(count);
if m[i]>max then max:=m[i];
if m[i]<min then min:=m[i];
end;
end;
writeln('MAX: ', max);
writeln('MIN: ', min);
writeln('Count: ', count);
end;
begin
for i:=0 to 14 do begin
write('n: ');
readln(m[i]);
end;
work;
readln;
end.
#include <iostream>
using namespace std;
bool is_point_in_circle(double x, double y, double xc, double yc, double r);
int main()
{
double x, y, xc, yc, r;
bool result;
cin >> x >> y >> xc >> yc >> r;
result = is_point_in_circle(x, y, xc, yc, r);
if (result) cout << "YES";
else cout << "NO";
return 0;
}
bool is_point_in_circle(double x, double y, double xc, double yc, double r)
{
if ((x - xc) * (x - xc) + (y - yc) * (y - yc) < r * r) return true;
return false;
}