Coder

舒心、快乐,比什么都重要

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;
}

 

posted @ 2019-04-16 21:53  H123K  阅读(134)  评论(0编辑  收藏  举报