1011 A+B 和 C (15 分)

#include <iostream>
using namespace std;
int main(){
    int t;
    cin >> t;
    double a, b, c;  // 因为int最大是2^31的数字,所以要用double  这个很重要
    for (int i = 1; i <= t; i++){
        cin >> a >> b >> c;
        if (a + b > c)
            cout << "case #" << i << ": true" << endl;
        else
            cout << "case #" << i << ": false" << endl;
     }
     return 0;
}
原文地址:https://www.cnblogs.com/Hk456/p/10720312.html