Advertisement
Guest User

xcode4.py

a guest
Sep 5th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. t=input()
  2. for _ in xrange(t):
  3.     n=input()
  4.     a=map(int,raw_input().split())
  5.     print ((sum(a)*(2**(n-1)))%(10**9+7))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement