我的个人网站 Cheese的个人主页http://www.cheese.ren/
博客来源 PAT 乙级 1011 A+B 和 C-Cheese的个人博客PAT 乙级 1011 A+B 和 Chttp://blog.cheese.ren/31
欢迎交换友链 :-)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i=0; i<n; i++) {
double a, b, c;
cin >> a >> b >> c;
if (c < a + b)
cout << "Case #" << i + 1 << ": " << "true" << endl;
else
cout << "Case #" << i + 1 << ": " << "false" << endl;
}
return 0;
}