logo AlgoBeat OnlineJudge
登录 注册

#217116. [ICPC 2017 Hong Kong R] Count the Even Integers

内存限制:512 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Yang Hui’s Triangle is defined as follows.

In the first layer, there are two numbers and satisfying .

Then for each , the -th layer contains numbers satisfying and for .

Now, given an integer , you are asked to count the number of even integers in the first layers.

输入格式

The input file contains multiple cases, please handle it to the end of file.

For each case, there is only one line containing an integer ().

输出格式

For each case, output the number of the even integers in the first layers of Yang Hui’s Triangle.

样例

样例输入 1

4
8
12

样例输出 1

4
16
42