← Back to List

11131번: Balancing Weights ↗

Solutions

Python 3
204 B | 204 chars
for t in range(int(input())):
    n = input()
    S = sum(list(map(int,input().split())))
    if S == 0:
        print("Equilibrium")
    elif S > 0:
        print("Right")
    else:
        print("Left")