Please turn JavaScript on

Latest DMOJ Comments

Want to stay in touch with the latest updates from Latest DMOJ Comments? That's easy! Just subscribe clicking the Follow button below, choose topics or keywords for filtering if you want to, and we send the news to your inbox, to your phone via push notifications or we put them on your personal page here on follow.it.

Reading your RSS feed has never been easier!

Website title: Home - DMOJ: Modern Online Judge

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  0.5 / day

Message History

V5250435_Nguyễn Công Hoàng Hiệp


Read full story

a, b = map(int, input().split()) c, d = map(int, input().split())

def check(a, b, c, d):

# ghép ngang if b == d and a + c == b: return True # ghép dọc if a == c and b + d == a: return True return False

ok = False

thử mọi cách xoay

for x, y in [(a, b), (b, a)]: for u, v in [(c, d), (d, c)]: if check(x, y, u, v): ok = True

print("YES" if ok els...


Read full story