Skip to content

Instantly share code, notes, and snippets.

@andrewgordstewart
Created January 22, 2017 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewgordstewart/afac1df9ae4c53466246917821496b5f to your computer and use it in GitHub Desktop.
Save andrewgordstewart/afac1df9ae4c53466246917821496b5f to your computer and use it in GitHub Desktop.
import math
_ = input()
nums = list(map(int, input().strip().split(" ")))
print(2 ** int(math.log2(sum(nums))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment