最大值

This commit is contained in:
flykhan 2023-03-30 16:31:31 +08:00
parent 1b88461434
commit 657ee0dbbf
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include <cmath>
#include <cstdio>
int main()
{
int a, b, c;
int max;
scanf("%d%d%d", &a, &b, &c);
max = (a + b + abs(a - b)) / 2;
max = (max + c + abs(max - c)) / 2;
printf("%d eh o maior", max);
return 0;
}