На паскале:
program hz;
var x,y,z:real;
begin
read(x,y,z);
if x+y+z = 3 then write( x*2, y*2, z*2) else write(x/2,y/2,z/2);
end.
На паскале:
program hz;
var x,y,z:real;
begin
read(x,y,z);
if x+y+z = 3 then write( x*2, y*2, z*2) else write(x/2,y/2,z/2);
end.