← Back to List

27855번: Cornhole ↗

Solutions

Python 3
186 B | 186 chars
a, b = map(int, input().split())
c, d = map(int, input().split())

a = 3 * a + b
c = 3 * c + d

if a > c:
    print(1, a - c)
elif a < c:
    print(2, c - a)
else:
    print("NO SCORE")