Watermelon西瓜

这篇博客讲述了两个喜欢偶数的男孩皮特和比利在炎热夏日买了一个重w公斤的西瓜,他们希望将西瓜分成两部分,每部分重量都是偶数。文章提出了一个判断能否按要求分割西瓜的问题,输入为西瓜重量,输出为能否成功分割的结论。示例和题解指出,只要西瓜重量为偶数,就能找到满足条件的分割方案。
摘要由CSDN通过智能技术生成

One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.

Pete and Billy are great fans of even numbers, that’s why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that’s why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.
一个炎热的夏天,皮特和他的朋友比利决定买一个西瓜。在他们看来,他们选择了最大最成熟的。然后称西瓜的重量,秤上的重量显示为w公斤。他们急忙赶回家,渴死了,决定分浆果,然而他们面临着一个困难的问题。
皮特和比利是偶数的超级粉丝,这就是为什么他们想把西瓜分成两部分,两部分的重量都是偶数公斤&#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值