Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=input()
- for _ in xrange(t):
- n=input()
- a=map(int,raw_input().split())
- print ((sum(a)*(2**(n-1)))%(10**9+7))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement