if ашиглахгүй их бага олох
Posted by gege
Posted on 4:42 AM
#include
#include
int main(){
int a,b,max;
scanf("%d%d",&a,&b);
max=(a+b)/2+fabs(a-b)/2;
printf("max=%d\n",max);
return 0;
}
а-гараас өгнө
b-гараас өгнө
#include
int main(){
int a,b,max;
scanf("%d%d",&a,&b);
max=(a+b)/2+fabs(a-b)/2;
printf("max=%d\n",max);
return 0;
}
а-гараас өгнө
b-гараас өгнө