Why? Why is 5.000?

caisen 2024-09-14 21:58:50 2024-09-14 21:59:15 4
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL a, b, c;
double s = 0;
int main()
{
    cin >> a >> b >> c;
    s = max(a, max(b, c)) / (max(a + b, max(b, c))) * max(a, max(b, b + c));
    printf("%.3f", s);
    return 0;
}

Thanks! @root

{{ vote && vote.total.up }}

共 1 条回复

caisen

麻烦站长root解释一下哦!谢谢!!! @root @CPP =)