Skip to content

Instantly share code, notes, and snippets.

@IKKO-Ohta
Created July 13, 2017 04:23
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 IKKO-Ohta/2226ba8667674a0a9851abe9019886b1 to your computer and use it in GitHub Desktop.
Save IKKO-Ohta/2226ba8667674a0a9851abe9019886b1 to your computer and use it in GitHub Desktop.
import itertools
S = [int(x) for x in input().split()]
C = list(itertools.combinations(S,3))
c = [sum(x) for x in C]
print(c[-3])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment