#2440. C++-GESP 2023-12认证二级-选择题15(拓展03)

C++-GESP 2023-12认证二级-选择题15(拓展03)

Background

Description

image

image

Format

Input

Output

Samples

12
(1,2)
(2,3)
(3,4)
20
(1,2)
(4,5)

Limitation

1s, 1024KiB for each test case.