练习赛22

您所在的位置:网站首页 金粒子多重 练习赛22

练习赛22

2023-11-08 20:44| 来源: 网络整理| 查看: 265

  A - 1

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.

一个炎热的夏天,皮特和他的朋友比利决定买一个西瓜。他们选择了最大和最成熟的,在他们看来。西瓜是称重后,天平显示w公斤。他们冲回家,渴得要死,决定分西瓜,但是他们面临一个困难的问题。

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.

皮特和比利是偶数的狂热粉丝,这就是为什么他们要把西瓜分成两部分甚至体重公斤数要为偶数,同时它不是强制性的两部分是相等的。男孩们非常累,想尽快开始吃西瓜,这就是你应该帮助他们和解决的原因,如果他们能把西瓜用这种方式分开。当然,每个人都应该得到一个好的一部分重量。

Input

The first (and the only) input line contains integer number w (1 ≤ w ≤ 100) — the weight of the watermelon bought by the boys. 

第一行包含一个整数 n (1



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3