1011

#include
#include
#include
#include

using namespace std;

class A_B_C
{
public:
    A_B_C() = default;
    A_B_C(long long i, long long j, long long k) :a(i), b(j), c(k) {}
    bool get_result() const { return((a+b)>c); }
private:
    long long a = 0;
    long long b = 0;
    long long c = 0;
};

int main()
{
    unsigned n = 0;
    cin >> n;

    vector vec;

    for (int i = 0; i < n; ++i)
    {
        long long tmp_a,tmp_b,tmp_c;
    
        cin >> tmp_a>>tmp_b>>tmp_c;
        vec.push_back(A_B_C(tmp_a, tmp_b, tmp_c));
    }

    for (int i = 0; i < n; ++i)
    {
        cout << "Case #" << (i + 1) << ": " << (vec[i].get_result() ? "true" : "false") << endl;
    }

    system("pause");
    return 0;
}

你可能感兴趣的:(1011)