CF348C Subset Sums

Description

You are given an array $ a_{1},a_{2},...,a_{n} $ and $ m $ sets $ S_{1},S_{2},...,S_{m} $ of indices of elements of this array. Let's denote $ S_{k}={S_{k,i}} (1

Input Format

N/A

Output Format

N/A