卿卿如梦

关注

A. Food for Animals

卿卿如梦

关注

阅读 51

2022-05-06

#include<iostream>
using namespace std;
int main(){
    int t=0;
    cin>>t;
    while(t--){
        int a=0,b=0,c=0,x=0,y=0;
        cin>>a>>b>>c>>x>>y;
        if(a>=x){
            if(b+c>=y) cout<<"yes\n";
            else cout<<"no\n";
        }else{
            if(a+c>=x){
                c=a+c-x;
                if(b+c>=y) cout<<"yes\n";
                else cout<<"no\n";
            }else cout<<"no\n";
        }
    }
    return 0;
}

相关推荐

狗啃月亮_Rachel

food recipes

狗啃月亮_Rachel 56 0 0

瑾谋

hdu4292 food

瑾谋 48 0 0

8052cf60ff5c

A. Banana

8052cf60ff5c 43 0 0

豆丁趣

PAT (Top Level) Practise 1019 Separate the Animals (35)

豆丁趣 108 0 0

静守幸福

hdu 4292 Food【拆点网络流】

静守幸福 52 0 0

生态人

ZOJ3469 Food Delivery(区间dp)

生态人 86 0 0

非宁静不致远

HDU 4292 Food(网络流 拆点)

非宁静不致远 39 0 0

晒大太阳了

hdu 1227 Fast Food(DP线性决策)

晒大太阳了 75 0 0

爱喝酒的幸福人

A. String Building

爱喝酒的幸福人 53 0 0

你带来了我的快乐

A. Strange Functions

你带来了我的快乐 85 0 0

精彩评论(0)

0 0 举报