s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s615692586 | p03943 | u125269142 | 1596510672 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9136 | 283 | a, b, c = map(int, input().split())
num_lists = [a, b, c]
maximum = a
if a == b or a == c or b == c:
ans = 'No'
else:
if maximum < b:
maximum = b
if maximum < c:
maximum = c
num_lists.remove(maximum)
if num_lists[0] + num_lists[1] == maximum:
ans ='Yes'
print(ans) |
s424764061 | p03943 | u029929095 | 1596284530 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9112 | 110 | a,b,c=int(input()),int(input()),int(input())
if a+b==c or a+c==b or b+c==a:
print("Yes")
else:
print("No") |
s911062480 | p03943 | u891847179 | 1596259961 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9008 | 120 | def MAP(): return map(int, input().split())
x = sorted(MAP(x))
if x[0] + x[1] == x[2]:
print("Yes")
else:
print("No")
|
s231444576 | p03943 | u891847179 | 1596259935 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8968 | 122 | def MAP(): return map(int, input().split())
x = sorted(MAP(x))
if x[0] + x[1] == x[2]:
print("Yes")
else:
print("No")
|
s507575159 | p03943 | u099212858 | 1595944696 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8964 | 132 | x = list(map(int,input().split()))
if x[0]+x[1] == x[2] or x[1]+x[2] = x[0] or x[0]+x[2] == x[1]:
print("YES")
else:
print("NO") |
s456866538 | p03943 | u487288850 | 1595637033 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8968 | 89 | ys = list(map(int,input().split()))
ys.sort()
print('Yes' if ys[0]+ys[1]==y[2] else 'No') |
s226105534 | p03943 | u414920281 | 1595476553 | Python | PyPy3 (7.3.0) | py | Runtime Error | 91 | 74472 | 105 | abc=map(int,input().split())
abc.sort()
if abc[0]+abc[1]==abc[2]:
print("Yes")
exit()
print("No") |
s216754599 | p03943 | u215376033 | 1595347578 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9180 | 160 | a = int(input())
b = int(input())
c = int(input())
if a+b == c:
print("YES")
elif a+c == b:
print("YES")
elif b+c == a:
print("YES")
else:
print("NO") |
s953485800 | p03943 | u215376033 | 1595347408 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9092 | 137 | a = input()
b = input()
c = input()
if a+b == c:
print(YES)
elif a+c == b:
print(YES)
elif b+c == a:
print(YES)
else:
print(NO)
|
s337359509 | p03943 | u316603606 | 1594413189 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8928 | 122 | list.sort (l, reverse=True)
a = int (l[0])
b = int (l[1])
c = int (l[2])
if a == b+c:
print ('Yes')
else:
print ('No') |
s242384408 | p03943 | u440975163 | 1593726140 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8992 | 107 | a = list(map(int, input().split()))
a.sort()
if a[0] + a[1] == a[2]:
print('YES')
else:
pritn('NO') |
s567206256 | p03943 | u583799976 | 1593654219 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 219 | W,H,N=map(int,input().split())
a,b,c,d=0,W,0,H
for i in range(N):
x,y,A=map(int,input().split())
if A==1: a=max(a,x)
if A==2: b=min(b,x)
if A==3: c=max(c,y)
if A==4: d=min(d,y)
print(max(0,b-a)*max(0,d-c)) |
s444690718 | p03943 | u697615293 | 1593595740 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8872 | 159 | a,b,c = map(int,input().split())
if a+b == c:
print("Yes")
elif:
a+c == b:
print("Yes")
elif:
a == b+c:
print("Yes")
else:
print("No") |
s087781795 | p03943 | u506910932 | 1593458746 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9004 | 101 | a = list(map,int(input().split()))
a.sort()
if a[0]+a[1] == a[2]:
print('Yes')
else:
print('No') |
s328456209 | p03943 | u209275335 | 1593151382 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8920 | 115 | a,b,c = map(int,input().split())
if a + b == c pr a + c == b or b + c == a:
print("No")
else:
print("Yes")
|
s700939276 | p03943 | u209275335 | 1593151169 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9020 | 95 | a,b,c = map(int,input().split())
if sum(a,b,c) % 2 == 0:
print("Yes")
else:
print("No") |
s284158960 | p03943 | u333591669 | 1592951991 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9164 | 183 | def candy():
a=int(input())
b=int(input())
c=int(input())
if a+c==b:
print('Yes')
elif b+c==a:
print('Yes')
else:
print('No')
candy() |
s584057769 | p03943 | u860546679 | 1592846124 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9160 | 87 | a=list(map(int,input()))
a.sort()
print("Yes") if max(a[2]==a[1]+a[0]) else print("No") |
s611564974 | p03943 | u860546679 | 1592846052 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9092 | 85 | a=list(map(int,input())).sort()
print("Yes") if max(a[2]==a[1]+a[0]) else print("No") |
s426214574 | p03943 | u392361133 | 1592396096 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | a = list(map(int, input().split())).sorted()
print('Yes' if a[0] + a[1] == a[2] else 'No') |
s767788587 | p03943 | u445509700 | 1592336663 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a = input().split()
b = a
b = [int(x) for x in b]
a.remove(c)
if e == b:
print("Yes")
else:
print("No") |
s444146378 | p03943 | u697323362 | 1592082558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c=map(int,input().split())
x=sorted[a,b,c]
if x[0]+x[1]==x[2]:
print("Yes")
else:
print("No")
|
s212375849 | p03943 | u697323362 | 1592082518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a,b,c=map(int,input().split())
x=sorted[a,b,c]
if x[0]+x[1]=x[2]:
print("Yes")
else:
print("No")
|
s167793756 | p03943 | u446711904 | 1591467767 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a=map(int,input().split())
a.sort()
print('YNeos'[a[2]!=a[0]+a[1]::2]) |
s361564918 | p03943 | u555767343 | 1591327684 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, b, c = map(int, input().split())
if a == b+c or b = c+a or c == a+b:
print('Yes')
else:
print('No') |
s515933623 | p03943 | u460129720 | 1591237662 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | a = int(input())
b = int(input())
c = int(input())
if any([a+b ==c,a+c==b,b+c == a]):
print('Yes')
else:
print('No') |
s595763526 | p03943 | u556589653 | 1591219283 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 391 | w,h,n = map(int,input().split())
x_min = 0
y_min = 0
x_max = w
y_max = h
for i in range(n):
x,y,a = map(int,input().split())
if a == 1:
if x_min < x:
x_min = x
elif a == 2:
if x_max > x:
x_max = x
elif a == 3:
if y_min < y:
y_min = y
elif a == 4:
if y_max > y:
y_max = y
S = (x_max-x_min)*(y_max-y_min)
if S < 0:
print(0)
else:
print(S)
|
s639065836 | p03943 | u733132703 | 1591037254 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | A = list(map(int,input().split()))
a = sorted(A)
if a[2]=a[0]+a[1]:
print('Yes')
else:
print('No')
|
s405781685 | p03943 | u811436126 | 1590821692 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 238 | a, b, c = map(int, input().split())
if a + b == c or b + c == a or c + a == b:
print('Yes')
else:
print('No')
a, b, c = map(int, input().split())
if a + b == c or b + c == a or c + a == b:
print('Yes')
else:
print('No')
|
s723597014 | p03943 | u594956556 | 1590455887 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 323 | W, H, N = map(int, input().split())
left = 0
right = W
bottom = 0
top = H
for i in range(N):
x, y, a = map(int, input().split())
if a == 1:
left = max(left, x)
elif a == 2:
right = min(right, x)
elif a == 3:
bottom = max(bottom, y)
else:
top = min(top, y)
print((right-left) * (top-bottom)) |
s183441208 | p03943 | u247211039 | 1590371782 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | a, b, c = map(int, input().split())
x = sorted(list(a, b, c))
print("Yes" if x[0] + x[1] == x[2] else "No") |
s222769096 | p03943 | u900848560 | 1590305238 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 | a=input().split(" ")
sum1=a[0]+a[1]
sum2=a[0]+a[2]
sum3=a[1]+a[2]
if sum1+sum2==sum3 or sum1+sum3==sum2 or sum2+sum3==sum1
print("Yes")
else:
print("No")
|
s379438279 | p03943 | u929227298 | 1590151801 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | a,b,c=map(int,input().split())
if a+b==c or a+c==b or a==b+c
print("yes")
else
print("no") |
s125435955 | p03943 | u122428774 | 1589689284 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 38384 | 421 | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
int a = inp.nextInt();
int b = inp.nextInt();
int c = inp.nextInt();
boolean flag = false;
if ((a + b) == c) flag = true;
if ((a + c) == b) flag = true;
if ((b + c) == a) flag = true;
System.out.println(flag ? "Yes" : "No");
}
} |
s496731898 | p03943 | u408958033 | 1589497192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 540 | def cin():
return map(int,input().split())
def cino(test=False):
if not test:
return int(input())
else:
return input()
def cina():
return list(map(int,input().split()))
a,b,c = cin()
p = -1
q = 1e9
r = -1
s = 1e9
for i in range(c):
x,y,z = cin()
if z==1:
p = max(x,p)
elif z==2:
q = min(x,q)
elif z==3:
r = max(r,y)
else:
s = min(s,y)
if p==-1:
p = 0
if q==1e9:
q = a
if r==-1:
r=0
if s==1e9:
s=b
ans = (q-p)*(s-r)
if p>q or r>q:
print(0)
else:
print(ans)
|
s993509670 | p03943 | u408958033 | 1589496912 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 978 | def cin():
return map(int,input().split())
def cino(test=False):
if not test:
return int(input())
else:
return input()
def cina():
return list(map(int,input().split()))
a,b,c = cin()
p = -1
q = 1e9
r = -1
s = 1e9
for i in range(c):
x,y,z = cin()
if z==1:
p = max(x,p)
elif z==2:
q = min(x,q)
elif z==3:
r = max(r,y)
else:
s = min(s,y)
if p==-1:
p = 0
if q==1e9:
q = a
if r==-1:
r=0
if s==1e9:
s=b
# v = a-(a-p-1+a-q)
# w = b-(b-r+b-s)
# print(v,w)
ans = (q-p)*(s-r)
if ans>0:
print(ans)
else:
print(0)
# print(ans if ans>0 else 0)
# l1 = list(range(0,p+1))
# l2 = list(range(q,a))
# l1 = set(l1)
# l2 = set(l2)
# l3 = l1.union(l2)
# l4 = list(range(0,r))
# l5 = list(range(s,b+1))
# l4 = set(l4)
# l5 = set(l5)
# l6 = l4.union(l5)
# # print(l3,l6)
# # print(l1,l2)
# # print(p,q,r,s)
# if(len(l3)==a or len(l6)==b):
# print(0)
# else:
# print((a-len(l3)+1)*(b-len(l6)+1))
|
s250240126 | p03943 | u408958033 | 1589496865 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 932 | def cin():
return map(int,input().split())
def cino(test=False):
if not test:
return int(input())
else:
return input()
def cina():
return list(map(int,input().split()))
a,b,c = cin()
p = -1
q = 1e9
r = -1
s = 1e9
for i in range(c):
x,y,z = cin()
if z==1:
p = max(x,p)
elif z==2:
q = min(x,q)
elif z==3:
r = max(r,y)
else:
s = min(s,y)
if p==-1:
p = 0
if q==1e9:
q = a
if r==-1:
r=0
if s==1e9:
s=b
# v = a-(a-p-1+a-q)
# w = b-(b-r+b-s)
# print(v,w)
ans = (q-p)*(s-r)
print(ans if ans>0 else 0)
# l1 = list(range(0,p+1))
# l2 = list(range(q,a))
# l1 = set(l1)
# l2 = set(l2)
# l3 = l1.union(l2)
# l4 = list(range(0,r))
# l5 = list(range(s,b+1))
# l4 = set(l4)
# l5 = set(l5)
# l6 = l4.union(l5)
# # print(l3,l6)
# # print(l1,l2)
# # print(p,q,r,s)
# if(len(l3)==a or len(l6)==b):
# print(0)
# else:
# print((a-len(l3)+1)*(b-len(l6)+1))
|
s450349556 | p03943 | u165268875 | 1588814778 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 |
a, b, c = sorted(map(int, input().split()))
list = sorted(abc)
print("Yes" if a+b==c else "No")
|
s390417681 | p03943 | u549161102 | 1588432952 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 245 | W,H,N = int(input())
p = 0
q = W
l = 0
m = H
for i in range(N):
x,y,a = map(int.split())
if a == 1:
p = max(p,x)
if a == 2:
q = min(q,x)
if a == 3:
l = max(l,y)
if a == 4:
m = min(m,y)
S = (q-p)*(l-m)
print(S)
|
s334849706 | p03943 | u922416423 | 1588332881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a,b,c = map(int, input().split)
A = [a,b,c]
A.sort()
if a+b == c:
print("Yes")
else:
print("No") |
s516708427 | p03943 | u608088992 | 1588332700 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 226 | import sys
def solve():
input = sys.stdin.readline
C = [int(i) for i in input().spit()]
C.sort()
if C[0] + C[1] == C[2]: print("Yes")
else: print("No")
return 0
if __name__ == "__main__":
solve() |
s055368532 | p03943 | u951582245 | 1588116599 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | Cnd = list(map(int,input().split()))
Cnd = sorted(Cnd)
result = 'No'
if Cnd[0]=Cnd[1]+Cnd[2]:
result ='Yes'
id Cnd[0]+Cnd[1]=Cnd[2]:
result ='Yes'
print(result) |
s914573956 | p03943 | u380534719 | 1588102904 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 135 | a,b,c=map(int,input().split())
d=[]
d.append(a)
d.append(b)
d.append(c)
d.sort()
if a[0]+a[1]==a[2]:
print('YES')
else:
print('NO') |
s228918975 | p03943 | u380534719 | 1588102510 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 94 | a=list(map(int,input().split())).sort()
if a[0]+a[1]==a[2]:
print('YES')
else:
print('NO') |
s081612412 | p03943 | u380534719 | 1588102141 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 86 | a=list(map(int,input())).sort()
if a[0]+a[1]==a[2]:
print('YES')
else:
print('NO') |
s965790835 | p03943 | u550535134 | 1587546836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | abc = sorted(list(int, input().split()))
print("Yes" if abc[0] + abc[1] == abc[2] else "No") |
s119132309 | p03943 | u191423660 | 1587346759 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 631 | W, H, N = map(int, input().split())
x = [0] * N
y = [0] * N
a = [0] * N
for i in range(N):
x[i], y[i], a[i] = map(int, input().split())
X1 = 0
X2 = 0
Y1 = 0
Y2 = 0
x1, x2, y1, y2 = 0, 0, 0, 0
X = 0
Y = 0
entire = W * H
for i in range(N):
if a[i]==1 and X1<x[i]:
x1 = x[i] * H
X1 += x[i]
elif a[i]==2 and X2<(W-x[i]):
x2 = (W-x[i]) * H
X2 += W - x[i]
elif a[i]==3 and Y1<y[i]:
y1 = y[i] * W
Y1 += y[i]
elif a[i]==4 and Y2<(H-y[i]):
y2 = (H-y[i]) * W
Y2 += H - y[i]
entire = entire - (x1 + x2 + y1 + y2) + ((X1+X2) * (Y1+Y2))
print(entire)
|
s718300640 | p03943 | u048176319 | 1586848165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 409 | W, H, N = map(int, input().split())
w = 0
h = 0
lx = list()
ly = list()
la = list()
for i in range(1, N+1):
X, Y, A = map(int, input().split())
lx.append(X)
ly.append(Y)
la.append(A)
if A == 1 and w < X:
w = X
elif A == 2 and X < W:
W = X
elif A == 3 and h < Y:
h = Y
elif A == 4 and Y < H:
H = Y
S = (W - w)*(H - h)
if S < 0:
S = 0
print(S) |
s176311889 | p03943 | u485319545 | 1586821013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a,b,c=map(int,input().split())
total =sum([a,b,c])
if sum_A%3==0:
print('Yes')
else:
print('No')
|
s734592938 | p03943 | u289162337 | 1586798166 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 110 | s = set([int(i) for i in input().split()])
if s.pop() == s.pop() + s.pop():
print("Yes")
else:
print("No") |
s371199726 | p03943 | u745562158 | 1586646305 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38384 | 108 | lst = list(map(int, input().split()))
lst = lst.sorted()
print('Yes' if lst[0] + lst[1] == lst[2] else 'No') |
s224650886 | p03943 | u745562158 | 1586646238 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38384 | 104 | lst = [map(int, input().split())]
lst = lst.sorted()
print('Yes' if lst[0] + lst[1] == lst[2] else 'No') |
s396575669 | p03943 | u457957084 | 1586546431 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a,b,c = map(int,input().split())
sum = a + b + c
if sum % 2 == 0:
print(Yes)
else:
print(No)
|
s426684460 | p03943 | u457957084 | 1586546403 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 101 | a,b,c = map(int,input().split())
sum = a + b + c
if sum % 2 = 0:
print(Yes)
else:
print(No)
|
s709716517 | p03943 | u852790844 | 1586363151 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | n = list(map(int,input().split()))
n.sorted()
if n[0] + n[1] == n[2]:
print("Yes")
else:
print("No") |
s096480099 | p03943 | u852790844 | 1586363036 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | n = list(map(int,input()))
n.sorted()
if n[0] + n[1] == n[2]:
print("Yes")
else:
print("No") |
s038514181 | p03943 | u772649753 | 1586208858 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | a,b,c = map(int,input().spliy())
if a+b == c or b+c == a or c+a == b:
print("YES")
else:
print("NO") |
s434765637 | p03943 | u772649753 | 1586208692 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a = int(input())
b = int(input())
c = int(input())
n = [a,b,c]
d = (a+b+c)/2
if n.count(int(d)) == 1:
print("YES")
else:
print("NO") |
s342606813 | p03943 | u772649753 | 1586208440 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | a = int(input())
b = int(input())
c = int(input())
n = [a,b,c]
d = int ((a+b+c)/2)
if n.count(d) == 1:
print("YES")
else:
print("NO") |
s808671736 | p03943 | u292978925 | 1586134779 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | a, b, c = map(int, input().split())
if sum(a, b, c) == max(a, b, c) * 2:
print('Yes')
else:
print('No')
|
s894863368 | p03943 | u263691873 | 1586121487 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a,b,c=map(int,input().split())
if a == b + c or b = c + a or c = b + a:
print("YES")
else:
print("NO")
|
s230037400 | p03943 | u263691873 | 1586121396 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c=map(int,input().split())
if a == b + c or b = c + a c = b + a:
print("YES")
else:
print("NO")
|
s761873436 | p03943 | u787449825 | 1586038636 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 99 | a, b, c = map(int, input().split())
if a+b=c or a+c=b or b+c=a:
print('Yes')
else:
print('No')
|
s143252733 | p03943 | u787449825 | 1586038559 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a, b, c = map(int, input().split())
if a+b=c or a+c=b or b+c=a:
print('Yes')
else:
print('No |
s903916292 | p03943 | u896181359 | 1585975583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | a, b, c = map(int, input().split())
if a + b = c:
print('yes')
elif b + c = a:
print('yes')
elif c + a = b:
print('Yes')
else:
print('No')
|
s377947402 | p03943 | u440129511 | 1585271516 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,c = map(int,input().split())
if a==b+c or b==a+c or c==a+b :print('Yes')
else:print('No')
|
s052593037 | p03943 | u440129511 | 1585271442 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | a,b,c = list(map(int,input().split()))
if a==b+c or b==a+c or c==a+b :print('Yes')
else:print('No')
|
s843134277 | p03943 | u440129511 | 1585271364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | a,b,c = list(map(int,input().split()))
if a==b+c or b==a+c or c==a+b :print('YES')
else:print('NO')
|
s689222653 | p03943 | u440129511 | 1585240643 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | a, b, c = map(int,input().split())
if a==b+c or b==a+c or c==a+b:
print(Yes)
else:print(No) |
s925296056 | p03943 | u440129511 | 1585240514 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 105 | a=int(input())
b=int(input())
c=int(input())
if a==b+c or b==a+c or c==a+b:
print(Yes)
else:print(No) |
s018490108 | p03943 | u089142196 | 1584918275 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a,b,c=map(int,input().split())
if (a+b+C)-max(a,b,c)==max(a,b,c):
print("Yes")
else:
print("No") |
s473593731 | p03943 | u920621778 | 1584681316 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 514 | w, h, n = map(int, input().split())
nums_list=[list(map(int, input().split())) for i in range(n)]
minX = 0
maxX = w
minY = 0
maxY = h
for nums in nums_list:
x, y, a = map(int, nums)
if a == 1:
minX = minX if (minX > x) else x
elif a == 2:
maxX = maxX if (maxX < x) else x
elif a == 3:
minY = minY if (minY > y) else y
elif a == 4:
maxY = maxY if (maxY < y) else y
width = maxX-minX
width = width if (width > 0) else 0
height = maxY-minY
height = height if (height > 0) else 0
v = width*height
print(v) |
s539801647 | p03943 | u920621778 | 1584681206 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38384 | 491 | w, h, n = map(int, input().split())
nums_list=[list(map(int, input().split())) for i in range(n)]
minX = 0
maxX = w
minY = 0
maxY = h
for nums in nums_list:
x, y, a = map(int, nums)
if a == 1:
minX = minX if (minX > x) else x
elif a == 2:
maxX = maxX if (maxX < x) else x
elif a == 3:
minY = minY if (minY > y) else y
elif a == 4:
maxY = maxY if (maxY < y) else y
width = maxX-minX if (maxX-minX > 0) else 0
height = maxY-minY if (maxY-minY > 0) else 0
v = width*height
print(v) |
s091831363 | p03943 | u163874353 | 1584102183 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | l = map(int, input().split())
m = max(l)
n = l.pop(m)
wa = 0
for i in n:
wa += i
if wa == m:
print("Yes")
else:
print("No") |
s970807918 | p03943 | u341736906 | 1584041875 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 335 | import sys
W,H,N=map(int,input().split())
x1=0
x2=W
y1=0
y2=H
for i in range(N):
x,y,a=map(int,input().split())
if a==1:
x1=max(x1,x)
elif a==2:
x2=min(x,x2)
elif a==3:
y1=max(y1,y)
elif a==4:
y2=min(y,y2)
if x2<x1 or y2<y1:
print(0)
sys.exit()
xx=x2-x1
yy=y2-y1
print(xx*yy) |
s668707454 | p03943 | u341736906 | 1584041776 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 320 | W,H,N=map(int,input().split())
x1=0
x2=W
y1=0
y2=H
for i in range(N):
x,y,a=map(int,input().split())
if a==1:
x1=max(x1,x)
elif a==2:
x2=min(x,x2)
elif a==3:
y1=max(y1,y)
elif a==4:
y2=min(y,y2)
if x2<x1 or y2<y1:
print(0)
exit()
xx=x2-x1
yy=y2-y1
print(xx*yy) |
s632379786 | p03943 | u017719431 | 1583992808 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 700 | W, H, N = map(int, input().split())
plot_infos = [list(map(int, input().split())) for _ in range(N)]
def calcArea(M, H, N, plot_infos):
pointA = [M, H]
pointB = [0, 0]
for i in range(N):
plot_info = plot_infos[i]
if plot_info[2] == 1:
pointB[0] = max(plot_info[0], pointB[0])
elif plot_info[2] == 2:
pointA[0] = min(plot_info[0], pointA[0])
elif plot_info[2] == 3:
pointB[1] = max(plot_info[1], pointB[1])
elif plot_info[2] == 4:
pointA[1] = min(plot_info[1], pointA[1])
if pointA[0] < pointB[0] or pointA[1] < pointB[1]:
return 0
return (pointA[0] - pointB[0]) * (pointA[1] - pointB[1])
print(calcArea(W, H, N, plot_infos)) |
s546754965 | p03943 | u068584789 | 1583890865 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | packs = list(map(int, input().split())).sort()
if packs[2] - packs[1] == packs[0]:
print("Yes")
else:
print("No")
|
s220793363 | p03943 | u068584789 | 1583890797 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 120 | packs = list(map(int, input().split()).sort()
if packs[2] - packs[1] == packs[0]:
print("Yes")
else:
print("No") |
s326178418 | p03943 | u096616343 | 1583805312 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | a, b, c = map(int,input().split())
ans = False
if a == b + c or b = a + c or c = a + b:
ans = True
if ans:
print("Yes")
else:
print("No") |
s734796029 | p03943 | u137808818 | 1583777660 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | List = list(map(int,input().split()))
List2 = sorted(List)
print('Yes' if List2[0] + List2[1] == List2[2] else 'No') )
|
s506872982 | p03943 | u137808818 | 1583777466 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 117 | List = list(map(int,input().split()))
List2 = sorted(List)
print('Yes' if List2[0] + List2[1] == List2[3] else 'No') |
s994656949 | p03943 | u137808818 | 1583777395 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | List = list(map,input().split())
List2 = sorted(List)
print('Yes' if List2[0] + List2[1] == List2[3] else 'No') |
s046384104 | p03943 | u137808818 | 1583777010 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | List = list[input().split()]
List2 = sorted(List)
print('Yes' if List2[0] + List2[1] == List2[3] else 'No') |
s352126077 | p03943 | u434311880 | 1583211653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | a,b,c = map(int,input().split())
big = max(a,b,c)
total = a + b + c
if total = big*2:
print("Yes")
else:
print("No")
|
s211833202 | p03943 | u408375121 | 1582240256 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | A = map(int, input().split())
A.sort()
if A[2] == A[1] + A[0]:
print('Yes')
else:
print('No')
|
s952932657 | p03943 | u408375121 | 1582240199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | A = list(map(int, input().split()))
A.sort()
if A[2] = A[1] + A[0]:
print('Yes')
else:
print('No')
|
s235298081 | p03943 | u086503932 | 1581515912 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | a,b,c=map(int,input.split())
print('Yes')if sum(a,b,c) == max(a,b,c)*2 else print('No') |
s755402181 | p03943 | u772649753 | 1581311351 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a,b,c = map(int,input())
ave = int((a+b+c)/2)
if a == ave or b == ave or c == ave:
print("Yes")
else:
print("No") |
s161804050 | p03943 | u772649753 | 1581311323 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a,b,c = map(int,input())
ave = (a+b+c)/2
if a == ave or b == ave or c == ave:
print("Yes")
else:
print("No") |
s977365190 | p03943 | u686036872 | 1581235214 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 117 | ist=list(map(int, input().split()))
list.sort()
if list[0]+list[1] == list[2]:
print("Yes")
else:
print("No") |
s420671785 | p03943 | u325206354 | 1581098078 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 411 | x,y,n=list(map(int,input().split()))
xx=x
yy=y
S=[]
a1=0
b1=0
for _ in range(n):
S.append(list(map(int,input().split())))
for a in S :
if a[2]==1:
a1 = max(a1,a[0])
elif a[2]==2:
xx = min(xx,a[0])
elif a[2]==3:
b1 = max(b1,a[1])
elif a[2]==4:
yy = min(yy,a[1])
if(xx-a1)*(yy-b1)<0 or xx< 0 <yy or xx> 0 >yy:
print((xx-a1)*(yy-b1) if xx<a1 and yy<b1 else 0) |
s815691511 | p03943 | u752552310 | 1580566400 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | a, b, c = map(int, input().split())
if a == b + c:
print("Yes")
elif b == a + c:
print("Yes")
elif c = b + a:
print("Yes")
else:
print("No") |
s746147458 | p03943 | u752552310 | 1580566280 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 149 | a, b, c = map(int, input().split())
if a == b + c:
print("YES")
elif b == a + c:
print("YES")
elif c = b + a:
print("YES")
else:
print("NO") |
s666066176 | p03943 | u067962264 | 1580090700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | i = list(map(int, input().split()))
i.sort()
if i[2] == i[0]+i[1]:
print('Yes')
else:
print('No') |
s420336965 | p03943 | u067962264 | 1580090053 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | l=[int(input() for i in range(3))]
l.sort()
if l[2]==(l[0]+l[1]+l[2])/2:
print('YES')
else:
print('NO') |
s954347667 | p03943 | u293459994 | 1579610347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 647 | a = input().split()
w = int(a[0])
h = int(a[1])
n = int(a[2])
x_min = 0
x_max = w
y_min = 0
y_max = h
for i in range(n):
a = input().split()
wp = int(a[0])
hp = int(a[1])
ap = int(a[2])
if ap == 1:
if x_min < wp:
x_min = wp
elif ap == 2:
if x_max > wp:
x_max = wp
elif ap == 3:
if y_min < hp:
y_min = hp
elif ap == 4:
if y_max > hp:
y_max = hp
# print(x_min, x_max, y_min, y_max)
if x_max < x_min:
ws = 0
else:
ws = x_max - x_min
if y_max < y_min:
hs = 0
else:
hs = y_max - y_min
squea = ws * hs
print(squea)
|
s985822425 | p03943 | u871596687 | 1579372286 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b,c = sorted(map(int,input().split()))
if a+b =c:
print("Yes")
else:
print("No")
|
s284102685 | p03943 | u871596687 | 1579372229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,b,c = sorted(map(int,input().split()))
if a+b =c:
print("Yes")
else:
print("No") |
s577282695 | p03943 | u871596687 | 1579372065 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 171 | a,b,c = map(int,input().split())
int T = 0
if a+b == c:
T = 1
elif b+c == a:
T = 1
elif a+c == b:
T = 1
if T == 1:
print('YES')
else:
print('NO')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.