def maxsub(a,N): max_so_far = a[0] curr_max = a[0] for i in range(1,N): curr_max = max(a[i], curr_max + a[i]) max_so_far = max(max_so_far,curr_max) return max_so_far N = int(input()) arr =…

IT Шеф