5158: P8668 [蓝桥杯 2018 省 B] 螺旋折线

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

Output

Sample Input Copy

0 1

Sample Output Copy

3

HINT