//============================================================================
// Name : pat.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
long a,b,c;
int number;
int main() {
cin>>number;
for(int i=0;i<number;i++)
{
cin>>a>>b>>c;
if(a+b>c)
{
cout<<"Case #"<<i+1<<": true"<<endl;
}
else
{
cout<<"Case #"<<i+1<<": false"<<endl;
}
}
}
PAT1011A+B和C (15)
最新推荐文章于 2018-08-23 22:50:24 发布