solution.cpp 289 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
using namespace std;

int main(void)
{
    int x, y;
    for (x = 0; x <= 19; x++)
    {
        for (y = 43; y > x; y--)
        {
            if (2.3 * x + 1.9 * y == 82.3)
            {
                cout << x << endl;
            }
        }
    }
    return 0;
}