cswork / OA打开练习工作台

PaycomOA #4

Q4. Static Code Analysis — C

简单概念题可在线判题

考点(AI 标注)模拟/实现

The original problem gives a C function that returns 0 for an odd input and 1 for an even input, and calls it twice in a row starting from i=3. This site keeps the function and the number of calls, but reads the initial i from input and outputs the value after the second call.

输入格式

One line with one signed 32-bit integer i.

输出格式

Output the integer result after calling the original function twice in a row.

样例 1

输入:

3

输出:

1

样例 2

输入:

2

输出:

0

样例 3

输入:

0

输出:

0