def main():from sys import stdinm,s,n=map(int,stdin.readline().split())a=[int(i) for i in stdin.readline().split()]sa=sum(a)msa=m-saif msa>=s:print(0)else:ns=s-msast=[(0,sa)]ma=99999999while st:i,su=st.pop()if i==n:if suelse:st.append((i+1,su))if su-a[i]==ns:ma=sbreakelif su-a[i]>ns:st.append((i+1,su-a[i]))else:if suprint(ma-msa)if __name__=="__main__":main()
只差幾個字