题解 | #牛牛的计划#
牛牛的计划
https://www.nowcoder.com/practice/cf956ceef9f84f7393a0b7284fdbf95a
#include <stdio.h>
int main() {
int a,b,c;
int d,e,f;
scanf("%d%d%d",&a,&b,&c);
scanf("%d%d%d",&d,&e,&f);
if (d>a) {
printf("yes\n");
}
else if (d==a) {
if (e>b) {
printf("yes\n");
}
else if (e==b) {
if (f>=c) {
printf("yes\n");
}else {
printf("no\n");
}
}
else {
printf("no\n");
}
}
else {
printf("no\n");
}
return 0;
}
查看12道真题和解析