기출 문제 / ACPC 2026 ACPC

Cody's Ledger

Cody ran a shop for N days and recorded each day's profit or loss in a ledger. The value recorded for day i is the integer Ti; a day with a profit is written as a positive value, and a day with a loss as a negative value.

An audit was later carried out and established M confirmed facts, each about a period of days.