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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s400537942 | p03943 | u663014688 | 1558793637 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 183 | a, b, c = map(int, input().split())
if a + b == c:
print('Yes')
elif b + c == a:
print('Yes')
elif a + c == b:
print('Yes')
else:
print('No') |
s538806114 | p03943 | u366959492 | 1558758546 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a,b,c=map(int,input().split())
if max(a,b,c)*2==sum(a,b,c):
print("Yes")
else:
print("No")
|
s534902450 | p03943 | u856169020 | 1558457404 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | a,b,c = map(int,input().split())
l = [a,b,c]
l.sort()
if l[0] + 1[1] == 1[2]:
print("Yes")
else:
print("No") |
s024833636 | p03943 | u220345792 | 1557877979 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 296 | W, H, N = map(int, input().split())
X, Y = 0, 0
for i in range(N):
x, y, a = map(int, input().split())
if a == 1:
X = max(x, X)
elif a == 2:
W = min(W, x)
elif a == 3:
Y = max(y, Y)
elif a == 4:
H = min(H, y)
ans = (W-X)*(H-Y)
if ans <= 0:
print(0)
else:
print(ans)
|
s177230698 | p03943 | u591779169 | 1557588078 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 292 | w, h, n = map(int, input().split())
wz = 0
hz = 0
for i in range (n):
x, y, a = map(int, input().split())
if a == 1:
wz = x
if a == 2:
w = x
if a == 3:
hz = y
if a == 4:
h = y
if wz < w or hz < h:
print((w-wz)*(h-hz))
else:
print(0) |
s044048612 | p03943 | u170324846 | 1557441405 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 147 | import sys
S = [int(i) for i in input().split()]
T = sum(T)/2
for i in range(3):
if S[i] == T:
print("Yes")
sys.exit()
print("No") |
s085070468 | p03943 | u185331085 | 1557261112 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | a,b,c = map(int,input().split())
d = a/3 + b/3 + c/3
if d == a or d == b or d == c:
print(Yes)
else:
print(No) |
s387099075 | p03943 | u532966492 | 1557171928 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | a=list(map(int,input()));print("YNeos"[sum(a)!=max(a)*2])
|
s512419897 | p03943 | u824988704 | 1557033197 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 342 | w, h, n = list(map(int,input().split()))
init_w, init_h, init_w2, init_h2 = 0,0,w,h
for i in range(n):
x, y, a = list(map(int,input().split()))
if a ==1:
init_w = x
elif a==2:
init_w2 = x
elif a==3:
init_h = y
elif a==4:
init_h2 = y
area = (init_w2-init_w)*(init_h2-init_h)
if area<=0:
area = 0
print(area)
|
s598195787 | p03943 | u728566015 | 1556916613 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 428 | , H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
# X1, X2, Y1, Y2 = 0, W, 0, H
X1 = 0
X2 = W
Y1 = 0
Y2 = H
for x, y, a in P:
if a == 1:
X1 = max(X1, x)
elif a == 2:
X2 = min(X2, x)
elif a == 3:
Y1 = max(Y1, y)
elif a == 4:
Y2 = min(Y2, y)
else:
if X2 <= X1 or Y2 <= Y1:
print(0)
else:
print((X2 - X1) * (Y2 - Y1)) |
s800490086 | p03943 | u728566015 | 1556916323 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 401 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for x, y, a in P:
if a == 1:
X1 = max(X1, x)
elif a == 2:
X2 = min(X2, x)
elif a == 3:
Y1 = max(Y1, y)
elif a == 4:
Y2 = min(Y2, y)
else:
if X2 <= X1 or Y2 <= Y1:
print(0)
else:
print((X2 - X1) * (Y2 - Y1))
|
s745888403 | p03943 | u728566015 | 1556916173 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 378 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for x, y, a in P:
if a == 1:
X1 = max(X1, x)
elif a == 2:
X2 = min(X2, x)
elif a == 3:
Y1 = max(Y1, y)
elif a == 4:
Y2 = min(Y2, y)
if X2 <= X1 or Y2 <= Y1:
print(0)
else:
print((X2 - X1) * (Y2 - Y1)) |
s271327190 | p03943 | u728566015 | 1556915360 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 382 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for x, y, a in P:
if a == 1:
X1 = max(X1, x)
elif a == 2:
X2 = min(X2, x)
elif a == 3:
Y1 = max(Y1, y)
elif a == 4:
Y2 = min(Y2, y)
if X2 <= X1 or Y2 <= Y1:
S = 0
else:
S = (X2 - X1) * (Y2 - Y1)
print(S) |
s967192972 | p03943 | u728566015 | 1556915301 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 414 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for x, y, a in P:
if a == 1: # ai=1
X1 = max(X1, x)
elif a == 2: # ai=2
X2 = min(X2, x)
elif a == 3: # ai=3
Y1 = max(Y1, y)
elif a == 4: # ai=4
Y2 = min(Y2, y)
if X2 <= X1 or Y2 <= Y1:
S = 0
else:
S = (X2 - X1) * (Y2 - Y1)
print(S) |
s927573893 | p03943 | u728566015 | 1556915204 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 412 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for x, y, a in P:
if a == 1: # ai=1
X1 = max(X1, x)
elif a == 2: # ai=2
X2 = min(X2, x)
elif a == 3: # ai=3
Y1 = max(Y1, y)
elif a == 4: # ai=4
Y2 = min(Y2, y)
if X1 < X2 and Y1 < Y2:
S = (X2 - X1) * (Y2 - Y1)
else:
S = 0
print(S) |
s047702432 | p03943 | u728566015 | 1556914546 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 430 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for _ in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for i in P:
if i[2] == 1: # ai=1
X1 = max(X1, i[0])
elif i[2] == 2: # ai=2
X2 = min(X2, i[0])
elif i[2] == 3: # ai=3
Y1 = max(Y1, i[1])
elif i[2] == 4: # ai=4
Y2 = min(Y2, i[1])
if X1 < X2 and Y1 < Y2:
S = (X2 - X1) * (Y2 - Y1)
else:
S = 0
print(S) |
s422862654 | p03943 | u728566015 | 1556914200 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 461 | W, H, N = map(int, input().split())
P = [list(map(int, input().split())) for i in range(N)]
X1, X2, Y1, Y2 = 0, W, 0, H
for i in range(N):
if P[i][2] == 1: # ai=1
X1 = max(X1, P[i][0])
elif P[i][2] == 2: # ai=2
X2 = min(X2, P[i][0])
elif P[i][2] == 3: # ai=3
Y1 = max(Y1, P[i][1])
elif P[i][2] == 4: # ai=4
Y2 = min(Y2, P[i][1])
if X1 < X2 and Y1 < Y2:
S = (X2 - X1) * (Y2 - Y1)
else:
S = 0
print(S) |
s070355540 | p03943 | u507116804 | 1556683773 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a,b,c=map(int, input().split())
if a-b==0
print(int(c))
elif b-c==0:
print(int(a))
elif c-a==0:
print(int(b)) |
s083902630 | p03943 | u507116804 | 1556678347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | a,b,c=map(int, input().split())
if a+b=c or b+c=a or c+a=b:
print("YES")
else:
print("NO") |
s700762869 | p03943 | u108377418 | 1556596547 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 294 | def main():
list = [int(x) for x in input().split()]
sum = x[0] + x[1] + x[2]
max = x[0]
if max <= x[1]:
max = x[1]
if max <= x[2]:
max = x[2]
if max * 2 == sum:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()
|
s526640845 | p03943 | u436982376 | 1556218347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 346 | w,h,n=(int (i) for i in input().split())
w1=0
w2=w
h3=0
h4=h
for i in range(n):
x,y,a=(int (i) for i in input().split())
if a==1 and x>w1:
w1=x
elif a==2 and x<w2:
w2=x
elif a==3 and y>h3:
h3=y
elif a==4 and y<h4:
h4=y
s=(w-w1-(w-w2))*(h-h3-(h-h4))
if s<=0:
print(0)
else:
print(s)
|
s207049541 | p03943 | u975676823 | 1556209495 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | arr = map(int, input().split())
if((arr[0] + arr[1] + arr[2]) % 2 == 0):
print("Yes")
else:
print("No") |
s176486516 | p03943 | u975676823 | 1556209461 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | arr = map(int, input().split())
if((arr[0] + arr[1] + arr[2]) % 3 == 0):
print("Yes")
else:
print("No") |
s089459227 | p03943 | u475675023 | 1556164952 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | a,b,c=map(int,input().split())
print("Yes" if a+b+c=2*max(a,b,c) else "No") |
s027499833 | p03943 | u728566015 | 1556149426 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | f = True
a, b, c = map(int, input().split())
candy = [a, b, c]
if not max(candy) == sum(candy) - max(candy):
f = False
if f:
print("YES")
else:
|
s808763088 | p03943 | u728566015 | 1556148844 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | # -*- Coding: utf-8 -*-
a, b, c = map(int, input().split())
candy = [a, b, c]
candy.sort()
if candy[0] + candy[1] == candy[2]:
print("YES")
else:
Print("NO")
|
s275944163 | p03943 | u728566015 | 1556148544 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | # -*- Coding: utf-8 -*-
a, b, c = map(int, input().split())
candy = [a, b, c]
if max(candy) == sum(candy) - max(candy):
print("YES")
else:
Print("NO")
|
s025717680 | p03943 | u728566015 | 1556148494 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 143 | # -*- Coding: utf-8 -*-
a, b, c = map(int, input().split())
candy = [a, b, c]
if max(candy) == sum(candy) - max(candy):
print("YES")
else: |
s224657831 | p03943 | u555917689 | 1556060675 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | a,b,c=input().split()
if a+b=c:
print(“Yes”)
if else b+c=a:
print(“Yes”)
if else a+c=b:
print(“Yes”)
else:
print(“No”)
|
s374290388 | p03943 | u207082620 | 1556060487 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38640 | 170 | from functools import reduce
from operator import add
A = list(map(int, input().split()))
print("Yes" if max(A) == reduce(add, [i for i in A if i != max(A)]) else "No")
|
s848682244 | p03943 | u077291787 | 1556004416 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 166 | # ABC047A - キャンディーと2人の子供 / Fighting over Candies
a, b, c = sorted(list(map(int, input().rstrip().split())))
print("Yes" if a + B == c else "No") |
s227572591 | p03943 | u144980750 | 1555879575 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 77 | a=map(int,input().split())
a.sort()
print("Yes" if a[0]+a[1]==a[2] else "No") |
s419585493 | p03943 | u382431597 | 1555729598 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 537 | #include <bits/stdc++.h>
#define ll long long
#define INIT std::ios::sync_with_stdio(false);std::cin.tie(0);
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define dump(x) cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
int main() {
INIT;
int a,b,c;
cin >> a >> b >> c;
if(a+b == c ||a+c == b ||c+b == a){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
return 0;
} |
s828566916 | p03943 | u145889196 | 1555363705 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 488 | W,H,N=map(int,input().split())
xM=W
xm=0
yM=H
ym=0
for i in range(N):
a=list(map(int,input().split()))
if a[2]==1:
if a[0]>xm:
xm=a[0]
else:
break
elif a[2]==2:
if a[0]<xM:
xM=a[0]
else:
break
elif a[2]==3:
if a[1]>ym:
ym=a[1]
else:
break
else:
if a[1]<yM:
yM=a[1]
else:
break
xl=xM-xm
yl=yM-ym
print(xl*yl) |
s272571149 | p03943 | u331464808 | 1555356440 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | a,b,c = map(int,input().split())
if a + b = c or b + c = a or c + a = b:
print("Yes")
else:
print("No") |
s789728168 | p03943 | u331464808 | 1555353977 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | a,b,c = map(int,input().split())
if (a + b + c)%2=0:
print(Yes)
else:
print(No)
|
s263783923 | p03943 | u957872856 | 1555343411 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a = list(map(int, input().split()))
a.sorted()
if a[0]+a[1] == a[2]:
print("Yes")
else:
print("No") |
s736684472 | p03943 | u387456967 | 1555192157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a,b,c = map(int, input().split())
if a=b+c or b=a+c or c=a+b:
print("Yes")
else:
print("No")
|
s824140430 | p03943 | u220345792 | 1555183195 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 111 | a, b, c = map(int, input().split())
if max(a,b,c) == sum(a,b,c)-max(a,b,c):
print("Yes")
else:
print("No") |
s402413852 | p03943 | u556016145 | 1555112763 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 107 | A = list(map(int, input().split()))
x = sorted(A)
if x[0] + x[1] == x[2]:
print('Yes')
else:
print('No' |
s759994958 | p03943 | u457960175 | 1555018363 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | a,b,c=map(int,input().split());print('YNeos'[a+b!=c and a+c!=b and b+c!=a::2])
a, b, c =map(intinput().split())
print('YNeos'[a+b=c and b+c=a and c+a=b]) |
s610821741 | p03943 | u457960175 | 1555017772 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | a, b, c = map(intinput().split())
if (a+b+c)%3=0 :
print('Yes')
else :
print('No') |
s299200554 | p03943 | u483151310 | 1554685552 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 210 | a, b, c = map(int, input().split())
ab = a+b
bc = b+c
ca = c+a
flg = False
if ab == c:
flg = True
if bc == a:
flg = True
if ca == b:
flg = True
if flg = True:
print("Yes")
else:
print("No") |
s811800802 | p03943 | u036363750 | 1554086075 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a = list(set([int(i) for i in input().split()])).sort()
if a[0]+a[1]==a[2]:
print("Yes")
else:
print("No")
|
s098285872 | p03943 | u127535085 | 1553898881 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | a = input()
b = input()
c = input()
if a+b==c or a==b+c or a+c==b:
print("Yes")
else:
print("No") |
s136519922 | p03943 | u923712635 | 1553753645 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | li = [int(x) for x in input().split()]
li.sort()
li.reverse()
if(li[0]==li[1]+li[2]):
print('Yes')
else:
print('No') |
s536627999 | p03943 | u923712635 | 1553753469 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | li = [int(x) for x in input().split()]
li.sort()
li.reversed()
if(li[0]==li[1]+li[2]):
print('Yes')
else:
print('No') |
s593313836 | p03943 | u268516119 | 1553457103 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 413 | W,H,N=list(map(int,input().split()))
ten=[list(map(int,input().split())) for _ in range(N)]
base=[[0,0,1],[0,0,3],[W,H,2],[W,H,4]]
ten.extend(base)
onemax=max(i[0] for i in ten if i[2]==1)
twomin=min(i[0] for i in ten if i[2]==2)
thrmax=max(i[1] for i in ten if i[2]==3)
foumin=min(i[1] for i in ten if i[2]==4)
if (twomin-onemax)>0 and (foumin-thrmax) >0:
print((twomin-onemax)*(foumin-thrmax))
else:print(0) |
s518063140 | p03943 | u227082700 | 1553195346 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | a=list(map(int,input()).split())
if sum(a)/2==max(a):print("YES")
else:print("NO") |
s896281639 | p03943 | u782654209 | 1553052410 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | candy = sorted(list(map(int,input().split(' '))))
if candy[2]==(candy[0]+candy[1]):
print('Yes')
else:
print(No'') |
s010959213 | p03943 | u440940914 | 1552689523 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a=input(a)
b=input(b)
c=input(c)
if a+b==c || b+c==a || a+c==b:
print("Yes")
else:
print("No") |
s728572452 | p03943 | u794173881 | 1551553154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | a,b,c = map(int,input().split())
if max(a,b,c) == sum(a,b,c) - max(a,b,c):
print("Yes")
else:
print("No") |
s904475372 | p03943 | u083960235 | 1551303939 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 451 | import sys
W,H,N=map(int,input().split())
wide=[0,W]
height=[0,H]
# white sphere calculate
for i in range(N):
x,y,a=map(int,input().split())
if a==1:
wide[0]=max(wide[0],x)
elif a==2:
wide[1]=min(wide[1],x)
elif a==3:
height[0]=max(height[0],y)
elif a==4:
height[1]=min(height[1],y)
w_len=wide[1]-wide[0]
h_len=height[1]-height[0]
s=w_len*h_len
if h_len<0 or w_len<0:
print(0)
else:
print(s) |
s749302200 | p03943 | u403984573 | 1551301711 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,c=map(int,input().split())
if a+b==c || a+c==b || b+c==a:
print("Yes")
else:
print("No") |
s213141447 | p03943 | u465669072 | 1550763005 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 97 |
for i in range(3):
sum += input()
if sum % 3 == 0:
print("Yes")
else:
print("No")
|
s132148832 | p03943 | u007550226 | 1550686000 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | l = list(map(int,input().split()))
if l % 2 == 1:
print('No')
else:
if l//2 in l:
print('Yes')
else:
print('No') |
s850446045 | p03943 | u952130512 | 1550448073 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 202 | s=input().split()
p=[0,0,0]
for n in range(3):
p[n]=int(s[n])
if p[0]+p[1]==p[2]:
print("Yes")
elif p[1]+p[2]==p[0]:
print("Yes")
elif p[2]+p[0]==p[1]:
print("Yes")
else
print("No")
|
s341245528 | p03943 | u127844950 | 1548977396 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 434 | w, h, n = map(int, input().split())
W = [0, w]
H = [0, h]
for i in range(n):
x, y, a = map(int, input().split())
if a == 1:
if W[0] < x:
W[0] = x
elif a == 2:
if W[1] > x:
W[1] = x
elif a == 3:
if H[0] < y:
H[0] = y
else:
if H[1] > y:
H[1] = y
if W[0] > W[1] or H[0] > H[1]:
print(0)
else:
print((W[1] - W[0]) * (H[1] - H[0])) |
s232988845 | p03943 | u216631280 | 1546481100 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 100 | li = map(int, input().split())
li.sort()
if li[0] + li[1] == li[2]:
print('Yes')
else:
print('No') |
s709256959 | p03943 | u239342230 | 1546282198 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 80 | a,b,c=map(int,input().split())
print('YES' if a=b+c or b=a+c or c=a+b else 'NO') |
s429247343 | p03943 | u643840641 | 1545554089 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 85 | a, b, c = map(int, input().split())
print("Yes" if a+b=c or b+c=a or c+a=b else "No") |
s025846445 | p03943 | u887207211 | 1545269922 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 302 | W, H, N = map(int,input().split())
dx, dy = 0, 0
for i in range(N):
x, y, a = map(int,input().split())
if(a == 1):
dx = max(dx, x)
elif(a == 2):
W = min(W, x)
elif(a == 3):
dy = max(dy, y)
else:
H = min(H, y)
if(dx <= W or dy <= H):
print(0)
else:
print((dx-W) * (dy-H))
|
s324986426 | p03943 | u439392790 | 1545237727 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | a,b,c=map(int, input().split())
if(a+b==c)||(b+c==a)||(a+c==b):
print("Yes")
else:
print("No") |
s182089095 | p03943 | u439392790 | 1545237538 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 87 | a,b,c=map(int, input().split())
if((a+b+c)%3=0):
print("Yes")
else:
print("No") |
s643808113 | p03943 | u272377260 | 1544892194 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | pack = list(map(int,input().split())).sort()
if pack[0] + pack[1] == pack[2]:
print('Yes')
else:
print('No') |
s704880301 | p03943 | u371467115 | 1544746797 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 103 | A, B, C=map(int(input().split()))
if A+B==C or A+C==B or B+C==A:
print("YES")
else:
print("NO") |
s118692837 | p03943 | u371467115 | 1544746679 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | A, B, C=map(int(input().split()))
if (A+B+C)%2==0:
print("YES")
else:
print("NO") |
s047957341 | p03943 | u993642190 | 1544394459 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | a,b,c = [int(i) for i in input().split()]
if (sum(a,b,c) == max(a,b,c) * 2) :
print("Yes")
else :
print("No") |
s963857472 | p03943 | u920299620 | 1543275786 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 89 | A=list(map(int,input().split()))
if( sum(A) == 2*max(A) ) print("Yes")
else print( "No" ) |
s552452225 | p03943 | u330039499 | 1541824999 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 46 | print "Yes" if (a + b + c) % 2 == 0 else "No"
|
s536990587 | p03943 | u729133443 | 1540718193 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | *a=map(int,input().split());print('YNeos'[sum(a)/2!=max(a)::2]) |
s735869926 | p03943 | u825378567 | 1540582372 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | a=input()
b=input()
c=input()
a=int(a)
b=int(b)
c=int(c)
avarage=(a+b+c)/2
if a!=avarage and b!=avarage and c!=avarage:
print("Yes")
else:
print("No")
|
s416161490 | p03943 | u825378567 | 1540579750 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | a=input()
b=input()
c=input()
avarage=(a+b+c)/2
if a==avarage or b==avarage or c==avarage:
print("Yes")
else:
print("No")
|
s908467783 | p03943 | u634209474 | 1540047366 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 339 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if(a + b == c || a + c == b || b + c == a) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
s781667612 | p03943 | u484856305 | 1538838016 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c=map(int.input().split())
total=a+b+c
if total%2==0:
print("Yes")
else:
print("No") |
s992975829 | p03943 | u484856305 | 1538837732 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a,b,c=map(int,input().split())
total=a+b+c
if total%2=0:
print("Yes")
else:
print("No") |
s255310903 | p03943 | u138486156 | 1538714040 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | a = map(int, input().split())
b = max(a)
a.remove(b)
if sum(a) == b:
print("Yes")
else:
print("No")
|
s971010383 | p03943 | u513081876 | 1538593098 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 96 | abc = sorted(list(map(int, input().split())))
print(`Yes` if abc[0]+abc[1] == abc[2] else `No`)
|
s803811041 | p03943 | u513081876 | 1538592972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | abc = sorted(map(int, input().split()))
print(`Yes` if abc[0]+abc[1] == abc[2] else `No`)
|
s378869220 | p03943 | u099918199 | 1537829690 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a,b,c = map(int, input())
if max(a,b,c) == (a+b+c -max(a,b,c)):
print("Yes")
else:
print("No") |
s587855473 | p03943 | u518556834 | 1537324761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | a = list(map(int,input().split()))
a.sort(reverse=True)
if a[0] = a[1] + a[2]:
print("Yes")
else:
print("No") |
s031373245 | p03943 | u304561065 | 1536816699 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | if a+b==c or b+c==a or c+a==b:
print('Yes')
else:
print('No') |
s144712781 | p03943 | u275934251 | 1534266308 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | a, b, c = map(int, input().split())
s = [a, b, c]
ld = sorted(s, reverse=True)
if ld[0] = ld[1] + ld[2]:
print("Yes")
else:
print("No") |
s431591798 | p03943 | u275934251 | 1534266144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | a, b, c = map(int, input().split())
s = [a, b, c]
ld = sorted(s, reverse=True)
if ld[0] = ld[1] + ld[2]:
print(Yes)
else:
print(No) |
s713370817 | p03943 | u724892495 | 1529109029 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | x = [int(i) for i input().split()]
x.sort()
print("Yes" if x[0]+x[1]==x[2] else "No") |
s018136944 | p03943 | u205561862 | 1528811663 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a,b,c=map(int,input.split());print(["No","Yes"][bool(a==b+c)+bool(b==a+c)+bool(c==a+b)])
|
s788451591 | p03943 | u205561862 | 1528811588 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | a,b,c=map(int,input.split());print(["No","Yes"][(a==b+c)+(b==a+c)+(c==a+b)])
|
s866049768 | p03943 | u205561862 | 1528811464 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a,b,c=map(int,input.split());print(["No","Yes"][bool(bool(a==b+c)or(bool(b==a+c))or(bool(c==a+b)))])
|
s778556860 | p03943 | u205561862 | 1528811416 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | a,b,c=map(int,input.split());print(["No","Yes"][bool((a==b+c)or(b==a+c)or(c==a+b))])
|
s285528502 | p03943 | u205561862 | 1528811358 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | a,b,c=map(int,input.split());print(["No","Yes"][bool(a==b+c or b==a+c or c==a+b)])
|
s189381100 | p03943 | u205561862 | 1528811326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | a,b,c=map(int,input.split());print(["No","Yes"][(a==b+c or b==a+c or c==a+b)]) |
s612321492 | p03943 | u205561862 | 1528811296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | a,b,c=map(int,input.split());print(["No","Yes"][(a==b+c or b==a+c or c==a+b)]) |
s675323740 | p03943 | u205561862 | 1528811252 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | a,b,c=map(int,input.split());print(["No","Yes"][a==b+c or b==a+c or c==a+b]) |
s359381292 | p03943 | u205561862 | 1528811233 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | a,b,c=map(int,input.split());print(["No","Yes"][a==b+c or b=a+c or c==a+b]) |
s629891730 | p03943 | u064246852 | 1525691582 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | split())
print("Yes" if 2*max(a,b,c)==a+b+c else "No") |
s333209566 | p03943 | u085302560 | 1519421426 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 451 | import sys
args = sys.argv
#print(args)
#print('第1引数:' + args[1])
#print('第2引数:' + args[2])
#print('第3引数:' + args[3])
ck(args[2])
list = [args[1], args[2], args[3]]
# 一番大きいやつ
l = 0;
for s in list:
#print(s);
if int(s) > l:
l = int(s)
print(l)
if l == (int(args[1]) + int(args[2])):
print("YES");
else:
print("NO");
def ck(x,y):
if x <= 1 && x <=100:
#print("ok") |
s392399528 | p03943 | u284102701 | 1517414381 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | a=map(int,input().split())
a.sort()
if a[0]+a[1]==a[2]:
print("Yes")
else:
print("No") |
s268787927 | p03943 | u586577600 | 1514856284 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | num = list(map(int, input().split()))
if max(num) == sum(num.remove(max(num))): print('Yes')
else: print('No') |
s862198112 | p03943 | u943004959 | 1514772675 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | def solve():
a, b, c = LI()
if a + b == c or a + c == b or b + c == a:
print("Yes")
else:
print("No")
solve() |
s514270828 | p03943 | u075012704 | 1511023313 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | a, b, c = map((int, input().split()))
if (a==b+c) or (b==c+a) or (c==a+b):
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.