Created
March 18, 2015 18:12
-
-
Save p53ud0k0d3/deb21e536a384c3d843d to your computer and use it in GitHub Desktop.
HackerRank Handshake
This file contains hidden or 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
people = [] | |
for _ in range(int(raw_input())): | |
people.append(int(raw_input())) | |
for n in people: | |
print ((n*(n-1))/2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment