【Basic Level】
*1011 注意数值范围
#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string s = "Case #";
int n = 0;
cin >> n;
long long a = 0, b= 0, c =0 , f = 0;
for (int i = 0; i < n; i++)
{
cin >> a >> b >>c;
cout << s << i + 1 << ": ";
(a + b > c) ? f = 1: f = 0;
if (f)
{
cout << "true\n";
}
else
{
cout << "false\n";
}
}
system("pause");
return 0;
}