PAT甲级1065 A+B and C (64bit) (20 分)

模拟

#include<iostream>
using namespace std;
int main()
{
    
    
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
    
    
        long double a,b,c;
        cin>>a>>b>>c;
        if(a+b>c)cout<<"Case #"<<i<<": true"<<endl;
        else cout<<"Case #"<<i<<": false"<<endl;
    }
    return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_51928751/article/details/121388901