题解 | #牛牛的计划#
牛牛的计划
https://www.nowcoder.com/practice/cf956ceef9f84f7393a0b7284fdbf95a
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); int a1,b1,c1; scanf("%d %d %d",&a1,&b1,&c1); int num,sum; num =a+b+c; sum =a1+b1+c1; if(a<=a1) { if(num<=sum) printf("yes"); else printf("no"); } else printf("no"); return 0; }