摘要: def solution(A): # write your code in Python 3.6 result = 100000 P = 1 while P < len(A): B=sum(A[0:P]) C=sum(A[P:]) result = min(result,abs(B-C)) P += 阅读全文
posted @ 2020-08-05 15:52 挨特·李 阅读(80) 评论(0) 推荐(0)