#P16296. [蓝桥杯 2026 省 Python C 组] 小青蛙跳荷叶

    ID: 18311 远端评测题 1000ms 512MiB 尝试: 0 已通过: 0 显示难度入门 上传者: 标签>数学提交答案2026蓝桥杯省赛

[蓝桥杯 2026 省 Python C 组] 小青蛙跳荷叶

Problem Description

In a pond, there is a long row of lotus leaves, and each lotus leaf has its own unique number.

The little frog, Guagua, is a very energetic frog. Its jumping strength is fixed each time. If it is on lotus leaf NN, with one jump it can land precisely on lotus leaf N+1N+1, N1N-1, N+2N+2, or N2N-2.

Today, Guagua is lying on lotus leaf 2026 sunbathing. Suddenly, it sees a delicious little bug on lotus leaf 1021. To catch the food as soon as possible, please calculate the minimum number of jumps Guagua needs to reach the lotus leaf where the bug is.

Output Format

This is a result-only fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is an integer. When submitting the answer, only fill in this integer. If you include extra content, you will not get any points.



Hint

Translated by ChatGPT 5