⌨️

[AtCoder]ABC-117|B - Polygon

2023/02/05に公開

設問ページ

提出結果

def getInt():
    return int(input())


def getIntList():
    return list(map(int, input().split()))


def main():
    n = getInt()
    l = getIntList()

    l.sort()

    m = l[n - 1]
    l.pop(n - 1)

    print('Yes' if sum(l) > m else 'No')


if __name__ == "__main__":
    main()

Discussion