← Back to List

19602번: Dog Treats ↗

Solutions

Python 3
74 B | 74 chars
print("happy" if sum([i*int(input()) for i in range(1,4)]) > 9 else "sad")