Created
July 13, 2017 04:23
-
-
Save IKKO-Ohta/2226ba8667674a0a9851abe9019886b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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