You are viewing a single comment's thread. Return to all comments →
My take on this, pretty similar to yours, I must say
n = input() arr = sorted(map(int, str(raw_input()).split()))[::-1] try: while (arr[1] + arr[2] <= arr[0]): arr.remove(arr[0]) print arr[2],arr[1],arr[0] except: print -1
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Perimeter Triangle
You are viewing a single comment's thread. Return to all comments →
My take on this, pretty similar to yours, I must say