1064
#include<stdio.h>
#include<math.h>
int main()
{
double x,y;
scanf("%lf",&x);
if(x >= 1)
y = sqrt(x - 1);
else
y = cos(x+2);
printf("%.2lf",y);
return 0;
}
1071
#include<stdio.h>
#include<math.h>
int main()
{
double x,y;
scanf("%lf",&x);
if(x < 1)
y = x +1;
else if(1<=x&&x<=3)
y = (2*sqrt(x))-1;
else
{
y=cos(x+3);
}
printf("%.2lf",y);
return 0;
}