1011 World Cup Betting (20 分)

#include
#include
#include
using namespace std;

int main()
{
    double a, b, c;
    double num[3];
    char res[3];
    for (int i = 0; i < 3; i++)
    {
        cin >> a >> b >> c;
        double x = max(a, max(b, c));
        num[i] = x;
        if (x == a)
            res[i] = 'W';
        if (x == b)
            res[i] = 'T';
        if (x == c)
            res[i] = 'L';
    }

    for (int i = 0; i < 3; i++)
    {
        cout << res[i] << " ";
    }
    cout << fixed<

你可能感兴趣的:(1011 World Cup Betting (20 分))