EN | ZH

# 题¶

## 2017 Tokyo Westerns CTF 3rd Backpacker's Problem¶

A cpp file is given in the title, which probably means the following

Given the integers a_1, a_2, ..., a_N, your task is to find a subsequence b of a

where b_1 + b_2 + ... + b_K = 0.

Input Format: N a_1 a_2 ... a_N

Answer Format: K b_1 b_2 ... b_K

Example Input:

4 -8 -2 3 5