#2554. C++-GESP 2023-09认证三级-编程题01(⼩杨的储蓄)

C++-GESP 2023-09认证三级-编程题01(⼩杨的储蓄)

Background

Description

image

image

Format

Input

Output

Samples

2 3
0 1 0
4 2
3 5
0 0 0 2 0
11 0 4

Limitation

1s, 1024KiB for each test case.