← Back to List

15820번: 맞았는데 왜 틀리죠? ↗

Solutions

Python 3
353 B | 353 chars
sat = True
syt = True

a,b=map(int,input().split(" "))

for i in range(a):
    i,j=map(int,input().split(" "))
    if i != j:
        sat =False

for i in range(b):
    i,j=map(int,input().split(" "))
    if i != j:
        syt =False

if sat and syt:
    print("Accepted")
elif sat and not syt:
    print("Why Wrong!!!")
else:
    print("Wrong Answer")