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
s697248094
p00003
u505912349
1475840182
Python
Python3
py
Runtime Error
0
0
268
import sys for line in sys.stdin: try: array = [int(x) for x in line.split()] array.sort() if array[2]**2 == (array[0]**2+array[1]**2): print('YES') else: print('NO') except(ValueError): continue
s160829920
p00003
u505912349
1475840447
Python
Python3
py
Runtime Error
0
0
250
import sys for line in sys.stdin: try: array = [int(x) for x in line.split()] array.sort() if array[2]**2 == (array[0]**2+array[1]**2): print('YES') else: print('NO') except(ValueError): continue
s284819220
p00003
u159356473
1476321847
Python
Python3
py
Runtime Error
0
0
407
#coding:UTF-8 def Rec(N,List): for i in range(N): a=int(List[i].split(" ")[0]) b=int(List[i].split(" ")[1]) c=int(List[i].split(" ")[2]) if a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a: print("YES") else: print("NO") if __name__=="__main__": List=[] N=int(input()) for i in range(N): List.append(input()) Rec(N,List
s081314765
p00003
u766597310
1477658853
Python
Python3
py
Runtime Error
0
0
202
def isRTri(a, b, c): return a * a + b * b == c * c a = [0, 0, 0] n = input() for k in range(n): a = map(int, raw_input().split()) r = isRTri(a[0], a[1], a[2]) print "YES" if r else "NO"
s192411391
p00003
u114472050
1477668108
Python
Python3
py
Runtime Error
0
0
194
N = int(raw_input()) for i in range(N): line = raw_input() a, b, c = sorted(int(i) for i in line.split()) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s779376441
p00003
u114472050
1477668162
Python
Python3
py
Runtime Error
0
0
194
N = int(raw_input()) for i in range(N): line = raw_input() a, b, c = sorted(int(w) for w in line.split()) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s604072027
p00003
u766597310
1477669713
Python
Python
py
Runtime Error
0
0
238
def isRTri(a, b, c): if a * a + b * b == c * c: return 1 else return 0 a = [0, 0, 0] n = input() for k in range(n): a = map(int, raw_input().split()) r = isRTri(a[0], a[1], a[2]) if r: print "YES" else: print "NO"
s490561450
p00003
u922871577
1479277893
Python
Python
py
Runtime Error
0
0
96
n = input() a, b, c = sorted(map(int, raw_inpu().split())) print 'YES' if a*a+b*b==c*c else 'NO'
s127693023
p00003
u542645301
1479472797
Python
Python3
py
Runtime Error
0
0
147
[print(["YES", "NO"][0 if int(i[0]) ** 2 + int(i[1]) ** 2 == int(i[2]) ** 2 else 1]) for i in sorted(input().split()) for _ in range(int(input()))]
s207980783
p00003
u542645301
1479472939
Python
Python3
py
Runtime Error
0
0
165
[print(["YES", "NO"][0 if int(i[0]) ** 2 + int(i[1]) ** 2 == int(i[2]) ** 2 else 1]) for i in sorted([int(x) for x in input().split()]) for _ in range(int(input()))]
s735483118
p00003
u542645301
1479475392
Python
Python3
py
Runtime Error
0
0
158
[ print(["YES", "NO"][0 if i[0] ** 2 + i[1] ** 2 == i[2] ** 2 else 1]) for i in [sorted([int(x) ** 2 for x in input().split()])] for _ in range(int(input()))]
s952178868
p00003
u542645301
1479475432
Python
Python3
py
Runtime Error
0
0
171
[ print(["YES", "NO"][0 if d[0] ** 2 + d[1] ** 2 == d[2] ** 2 else 1]) for i,d in enumerate([sorted([int(x) ** 2 for x in input().split()])]) for _ in range(int(input()))]
s191196644
p00003
u292012552
1479789636
Python
Python3
py
Runtime Error
0
0
183
while (1): edges = list(map(int, input().split())) if len(edges) == 0: break edges.sort() if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2: print("YES") else: print("NO")
s489278777
p00003
u116501200
1480146679
Python
Python3
py
Runtime Error
0
0
137
[print("YES"if e else"NO")for e in[int(ln.split()[0])**2+int(ln.split()[1])**2==int(ln.split()[2])**2 for ln in __import__("sys").stdin]]
s815052694
p00003
u116501200
1480146718
Python
Python3
py
Runtime Error
0
0
136
[print("YES"if e else"NO")for e in[int(ln.split()[0])**2+int(ln.split()[1])**2==int(ln.split()[2])**2for ln in __import__("sys").stdin]]
s198383510
p00003
u116501200
1480146743
Python
Python3
py
Runtime Error
0
0
136
[print("YES"if e else"NO")for e in[int(ln.split()[0])**2+int(ln.split()[1])**2==int(ln.split()[2])**2for ln in __import__("sys").stdin]]
s839167056
p00003
u493187281
1483956517
Python
Python3
py
Runtime Error
0
0
287
def sankaku(a,b,c): if (a*a)+(b*b)==c*c: return "Yes" elif (a*a)+(c*c)==b*b: return "Yes" elif (b*b)+(c*c)==a*a: return "Yes" else: return "No" l = 0 l = input().split() d = int(l[0]) e = int(l[1]) f = int(l[2]) print(sankaku(d,e,f))
s653790468
p00003
u319774425
1485063922
Python
Python
py
Runtime Error
0
0
477
N = input() a = [] for i in range(N): a.append(map(int, input().strip().split())) for j in range(len(a)): number_1 = a[j][0] number_2 = a[j][1] number_3 = a[j][2] number_1 = number_1 * 2 number_2 = number_2 * 2 number_3 = number_3 * 2 if number_1 = number_2 + number_3: print("YES") if number_2 = number_3 + number_1: print("YES") if number_3 = number_1 + number_2: print("YES") else: print("NO")
s622089213
p00003
u319774425
1485063965
Python
Python
py
Runtime Error
0
0
477
N = input() a = [] for i in range(N): a.append(map(int, input().strip().split())) for j in range(len(a)): number_1 = a[j][0] number_2 = a[j][1] number_3 = a[j][2] number_1 = number_1 * 2 number_2 = number_2 * 2 number_3 = number_3 * 2 if number_1 = number_2 + number_3: print("YES") if number_2 = number_3 + number_1: print("YES") if number_3 = number_1 + number_2: print("YES") else: print("NO")
s094669721
p00003
u319774425
1485064282
Python
Python
py
Runtime Error
0
0
497
N = input() a = [] answer_list = [] for i in range(N): a.append(map(int, input().strip().split())) for j in range(len(a)): number_1 = a[j][0] number_2 = a[j][1] number_3 = a[j][2] number_1 = number_1 * 2 number_2 = number_2 * 2 number_3 = number_3 * 2 if number_1 == number_2 + number_3: print("YES") if number_2 == number_3 + number_1: print("YES") if number_3 == number_1 + number_2: print("YES") else: print("NO")
s972313674
p00003
u811841526
1485606166
Python
Python3
py
Runtime Error
0
0
280
def is_triangle(x, y, z): x, y, z = sorted(x, y, z) return x**2 + y**2 == z**2 num = int(input()) for i in range(num): x, y, z = map(int, input().split()) triangle = is_triangle(x, y, z) if triangle: print('YES') else: print('NO')
s257701493
p00003
u811841526
1485606329
Python
Python3
py
Runtime Error
0
0
280
def is_triangle(x, y, z): x, y, z = sorted(x, y, z) return x**2 + y**2 == z**2 num = int(input()) for i in range(num): x, y, z = map(int, input().split()) triangle = is_triangle(x, y, z) if triangle: print('YES') else: print('NO')
s738779845
p00003
u519227872
1486406541
Python
Python3
py
Runtime Error
0
0
152
n = int(input()) for i in range(n): h = list(map(int,input())) h.sort() if h[0]**2 ++ h[1]**2 == h[2]**2: print('YES') else: print('NO')
s843525465
p00003
u319774425
1488463206
Python
Python
py
Runtime Error
0
0
329
def calc_triangle(list): a, b, c = list.sprit() a_2 = a ** 2 b_2 = b ** 2 c_2 = c ** 2 if a_2 == b_2 + c_2 or b_2 == a_2 + c_2 or c_2 == a_2 + b_2: print "YES" else: print "NO" N = input() a = [] for i in range(N): a.append(input()) for i in range(N): calc_triangle(a[i])
s176107888
p00003
u319774425
1488463244
Python
Python
py
Runtime Error
0
0
329
def calc_triangle(list): a, b, c = list.sprit() a_2 = a ** 2 b_2 = b ** 2 c_2 = c ** 2 if a_2 == b_2 + c_2 or b_2 == a_2 + c_2 or c_2 == a_2 + b_2: print "YES" else: print "NO" N = input() a = [] for i in range(N): a.append(input()) for i in range(N): calc_triangle(a[i])
s608043470
p00003
u319774425
1488463437
Python
Python
py
Runtime Error
0
0
256
N = input() a = [input() for i in range(N)] for i in range(N): a, b, c = list.sprit() a_2 = a ** 2 b_2 = b ** 2 c_2 = c ** 2 if a_2 == b_2 + c_2 or b_2 == a_2 + c_2 or c_2 == a_2 + b_2: print "YES" else: print "NO"
s389416036
p00003
u319774425
1488463668
Python
Python
py
Runtime Error
0
0
258
N = input() a = [] for i in range(N): a.append(map(int, raw_input(.split))) for i in range(N): a = a[i][0] ** 2 b = a[i][1] ** 2 c = a[i][2] ** 2 if a == b + c or b == a + c or c == a + b: print "YES" else: print "NO"
s050104437
p00003
u319774425
1488463711
Python
Python
py
Runtime Error
0
0
259
N = input() a = [] for i in range(N): a.append(map(int, raw_input().split()) for i in range(N): a = a[i][0] ** 2 b = a[i][1] ** 2 c = a[i][2] ** 2 if a == b + c or b == a + c or c == a + b: print "YES" else: print "NO"
s364667840
p00003
u623894175
1489483301
Python
Python3
py
Runtime Error
0
0
207
deta_set_count = int(input()) for _ in range(deta_set_count): k = list(map(int, input().split())) k= k.sorted() if k[0]**2 + k[1]**2 == k[2]**2: print('YES') else: print('NO')
s628742522
p00003
u623894175
1489483313
Python
Python3
py
Runtime Error
0
0
207
deta_set_count = int(input()) for _ in range(deta_set_count): k = list(map(int, input().split())) k= k.sorted() if k[0]**2 + k[1]**2 == k[2]**2: print('YES') else: print('NO')
s885039467
p00003
u957680575
1492168200
Python
Python
py
Runtime Error
0
0
199
N = int(input()) for i in range(N): a = list(map(int, input().split())) a = sorted(a) x,y,z = a[0],a[1],a[2] if x**2 + y**2 == z**2: print("yes") else: print("no")
s157932390
p00003
u957680575
1492168200
Python
Python
py
Runtime Error
0
0
199
N = int(input()) for i in range(N): a = list(map(int, input().split())) a = sorted(a) x,y,z = a[0],a[1],a[2] if x**2 + y**2 == z**2: print("yes") else: print("no")
s594182699
p00003
u618637847
1494292108
Python
Python3
py
Runtime Error
0
0
286
import sys import math for line in sys.stdin: a = line.split() if len(a) == 3: if int(a[0])*int(a[0]) + int(a[1])*int(a[1]) == int(a[2])*int(a[2]): print("YES") else: print("NO") }else{ console.log("NO") } } });
s459378570
p00003
u362104929
1494580159
Python
Python3
py
Runtime Error
0
0
245
def main(): n = input() li = [input() for _ in n] li = sorted(li) a,b,c = int(li[0]),int(li[1]),int(li[2]) if (a ** 2 + b **2) == c**2: print("YES") else: print("NO") if __name__ == '__main__': main()
s405919203
p00003
u362104929
1494580818
Python
Python3
py
Runtime Error
0
0
388
def main(): n = int(input()) if n <= 0: return None li = [int(input()) for _ in range(n)] li = sorted(li) for x in li: tmp = x.split(" ") tmp = sorted(tmp) a,b,c = tmp[0],tmp[1],tmp[2] if (a**2 + b**2) == c**2: print("YES") else: print("NO") return None if __name__ == '__main__': main()
s513083281
p00003
u362104929
1494590222
Python
Python3
py
Runtime Error
0
0
589
def main(): n = int(input()) while True: try: li = [int(i) for i in input().split()] li = sorted(li) for x in li: tmp = x.split(" ") for i in range(len(tmp)): tmp[i] = int(tmp[i]) tmp = sorted(tmp) a,b,c = tmp[0],tmp[1],tmp[2] if (a**2 + b**2) == c**2: print("YES") else: print("NO") except EOFError: break return None if __name__ == '__main__': main()
s330092872
p00003
u231802041
1495558198
Python
Python
py
Runtime Error
0
0
239
#coding:utf-8 import numpy as np ans = [] for i in range(int(raw_input())): a,b,c = map(int, raw_input().split()) if np.sqrt(a**2 + b**2) == c: ans.append("YES") else: ans.append("NO") for i in ans: print i
s087773801
p00003
u231802041
1495558312
Python
Python
py
Runtime Error
0
0
239
import numpy as np import math ans = [] for i in range(int(raw_input())): a,b,c = map(int, raw_input().split()) if math.sqrt(a**2 + b**2) == c: ans.append("YES") else: ans.append("NO") for i in ans: print i
s204758584
p00003
u231802041
1495558508
Python
Python
py
Runtime Error
0
0
315
#coding:utf-8 import numpy as np import math ans = [] for i in range(int(raw_input())): a,b,c = map(int, raw_input().split()) if math.sqrt(a**2 + b**2) == c or math.sqrt(b**2 + c**2) == a or math.sqrt(c**2 + a**2) == b: ans.append("YES") else: ans.append("NO") for i in ans: print i
s202842063
p00003
u340500592
1499404130
Python
Python3
py
Runtime Error
0
0
219
N = int(input()) for i in range(N): sides = map(int, input().split()) longestSide = max(sides) sides.remove(longestSide) if (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2): print('YES') else: print('NO')
s810354926
p00003
u350064373
1501247778
Python
Python3
py
Runtime Error
0
0
184
n = input() for i in range(n): a,b,c = map(int, input().split()) if a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a: print("YES") else: print("NO")
s619677037
p00003
u350064373
1501247844
Python
Python3
py
Runtime Error
0
0
175
n = input() for i in range(0, n): a,b,c = map(int, input().split()) if a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a: print("YES") else: print("NO")
s937010424
p00003
u369093003
1501420456
Python
Python3
py
Runtime Error
0
0
217
l = [] m = [] N = int(input()) for i in range(N): a,b,c = map(int, input().split(" ")) m.append(a) m.append(b) m.append(c) m.sort() if m[-1]**2 == m[-2]**2 + m[-3]**2: print("YES") else: print("NO") m = 0
s640245261
p00003
u354053070
1501674187
Python
Python3
py
Runtime Error
0
0
167
n = int(input()) for i in range(n): a, b, c = list(map(int, input())).sort() if c ** 2 == (a ** 2 + b ** 2): print("Yes") else: print("No")
s770095891
p00003
u234052535
1502789835
Python
Python3
py
Runtime Error
0
0
240
n=input() for i in range(0,n): ????????num=map(int, raw_input().split()) ????????num.sort() ????????a=num[0] ????????b=num[1] ????????c=num[2] ????????if c*c==a*a+b*b: ????????????????print ("YES") ????????else: ????????????????print ("NO")
s297431762
p00003
u234052535
1502789846
Python
Python3
py
Runtime Error
0
0
236
n=input() for i in range(0,n): ????????num=map(int, input().split()) ????????num.sort() ????????a=num[0] ????????b=num[1] ????????c=num[2] ????????if c*c==a*a+b*b: ????????????????print ("YES") ????????else: ????????????????print ("NO")
s955724082
p00003
u877201735
1505662804
Python
Python3
py
Runtime Error
30
7592
261
n = int(input()) for i in range(0, n): data = list(map(int, input().split(' '))) for j in range(0, 3): if data[j%3] < data[(j+1)%3] + data[(j+2)%3]: continue else: print('NO') exit(1) print('YES')
s779149755
p00003
u506705885
1506350978
Python
Python3
py
Runtime Error
0
0
485
times=int(input()) answers=[] for i in range(times): hen=input().split() for j in range(times): hen[j]=int(hen[j]) for j in range(times-1): for k in range(times-1): if hen[j]>hen[j+1]: num=hen[j] hen[j]=hen[j+1] hen[j+1]=num if hen[0]*hen[0]+hen[1]*hen[1]==hen[2]*hen[2]: answers.append('Yes') else: answers.append('No') for i in range(len(answers)): print(answers[i])
s417281902
p00003
u506705885
1506351056
Python
Python3
py
Runtime Error
0
0
496
times=int(input()) answers=[] for i in range(times): hen=[] hen=input().split() for j in range(times): hen[j]=int(hen[j]) for j in range(times-1): for k in range(times-1): if hen[j]>hen[j+1]: num=hen[j] hen[j]=hen[j+1] hen[j+1]=num if hen[0]*hen[0]+hen[1]*hen[1]==hen[2]*hen[2]: answers.append('Yes') else: answers.append('No') for i in range(len(answers)): print(answers[i])
s111728416
p00003
u197670577
1508088357
Python
Python
py
Runtime Error
0
0
161
inputs = map(int, raw_input().split()) max = max(inputs) inputs.remove(max) if max ** 2 == inputs[0] **2 + inputs[1] **2 : print "Yes" else: print "No"
s848976849
p00003
u422087503
1508707160
Python
Python3
py
Runtime Error
0
0
236
N = input() for i in range(N): l = [] line = raw_input() l.append(int(line.split()[0])) l.append(int(line.split()[1])) l.append(int(line.split()[2])) l.sort() if l[0]*l[0]+l[1]*l[1]==l[2]*l[2]: print("YES") else: print("NO")
s179815562
p00003
u422087503
1508707289
Python
Python3
py
Runtime Error
0
0
236
N = input() for i in range(N): l = [] line = raw_input() l.append(int(line.split()[0])) l.append(int(line.split()[1])) l.append(int(line.split()[2])) l.sort() if l[0]*l[0]+l[1]*l[1]==l[2]*l[2]: print("YES") else: print("NO")
s591908441
p00003
u422087503
1508707364
Python
Python3
py
Runtime Error
0
0
241
N = int(input()) for i in range(N): l = [] line = raw_input() l.append(int(line.split()[0])) l.append(int(line.split()[1])) l.append(int(line.split()[2])) l.sort() if l[0]*l[0]+l[1]*l[1]==l[2]*l[2]: print("YES") else: print("NO")
s809573651
p00003
u422087503
1508707538
Python
Python3
py
Runtime Error
0
0
235
N = int(input()) for i in range(N): l = [] line = raw_input() l.append(int(line.split()[0])) l.append(int(line.split()[1])) l.append(int(line.split()[2])) l.sort() if l[0]**2+l[1]**2==l[2]**2: print("YES") else: print("NO")
s182769428
p00003
u422087503
1508707918
Python
Python3
py
Runtime Error
0
0
232
N = int(input()) for i in range(N): line = raw_input() l = [None]*3 l[0] = int(line.split()[0]) l[1] = int(line.split()[1]) l[2] = int(line.split()[2]) l.sort() if l[0]**2+l[1]**2==l[2]**2: print("YES") else: print("NO")
s068524612
p00003
u424041287
1509096131
Python
Python3
py
Runtime Error
0
0
204
def tri(a,b,c): return a^2 == b^2 + c^2 for time in range(int(input())): x,y,z = [int(i) for i in input().split()] if tri(x,y,z) or tri(y,z,x) or tri(z,x,y): print(???YES???) else: print(???NO???)
s525418391
p00003
u424041287
1509096186
Python
Python3
py
Runtime Error
0
0
176
def tri(a,b,c): return a^2 == b^2 + c^2 for time in range(int(input())): x,y,z = [int(i) for i in input().split()] if tri(x,y,z): print(???YES???) else: print(???NO???)
s505441087
p00003
u424041287
1509096394
Python
Python3
py
Runtime Error
0
0
237
def tri(a,b,c): if a^2 == b^2 + c^2: return true else: return false for time in range(int(input())): x,y,z = [int(i) for i in input().split()] if tri(x,y,z) or tri(y,z,x) or tri(z,x,y): print(???YES???) else: print(???NO???)
s899542873
p00003
u424041287
1509096537
Python
Python3
py
Runtime Error
0
0
141
for time in range(int(input())): x,y,z = [int(i) for i in input().split()] if x^2 + y^2 == z^2: print(???YES???) else: print(???NO???)
s153859449
p00003
u424041287
1509096629
Python
Python3
py
Runtime Error
0
0
182
def tri(a,b,c): return a**2 == b**2 + c**2 for time in range(int(input())): x,y,z = [int(i) for i in input().split()] if tri(x,y,z) or tri(y,z,x) or tri(z,x,y): print(???YES???)
s139904810
p00003
u779220087
1513092450
Python
Python3
py
Runtime Error
0
0
1169
# usr/bin/python # coding: utf-8 ################################################################################ # Is it a Right Triangle? # Write a program which judges wheather given length of three side form a right triangle. Print "YES" if the given sides (integers) form a right triangle, "NO" if not so. # # Input # Input consists of several data sets. In the first line, the number of data set, N is given. Then, N lines follow, each line corresponds to a data set. A data set consists of three integers separated by a single space. # # Constraints # 1 ??? length of the side ??? 1,000 # N ??? 1,000 # Output # For each data set, print "YES" or "NO". # # Sample Input # 3 # 4 3 5 # 4 3 6 # 8 8 8 # Output for the Sample Input # YES # NO # NO # ################################################################################ import math import fileinput if __name__ == "__main__": for line in fileinput.input(): a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a) : print("YES") else : print("NO") exit(0)
s991096043
p00003
u779220087
1513092540
Python
Python3
py
Runtime Error
0
0
1157
# usr/bin/python # coding: utf-8 ################################################################################ # Is it a Right Triangle? # Write a program which judges wheather given length of three side form a right triangle. Print "YES" if the given sides (integers) form a right triangle, "NO" if not so. # # Input # Input consists of several data sets. In the first line, the number of data set, N is given. Then, N lines follow, each line corresponds to a data set. A data set consists of three integers separated by a single space. # # Constraints # 1 ??? length of the side ??? 1,000 # N ??? 1,000 # Output # For each data set, print "YES" or "NO". # # Sample Input # 3 # 4 3 5 # 4 3 6 # 8 8 8 # Output for the Sample Input # YES # NO # NO # ################################################################################ import fileinput if __name__ == "__main__": for line in fileinput.input(): a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a) : print("YES") else : print("NO") exit(0)
s421514698
p00003
u779220087
1513092837
Python
Python3
py
Runtime Error
0
0
1101
# usr/bin/python # coding: utf-8 ################################################################################ # Is it a Right Triangle? # Write a program which judges wheather given length of three side form a right triangle. # Print "YES" if the given sides (integers) form a right triangle, "NO" if not so. # # Input # Input consists of several data sets. In the first line, the number of data set, # N is given. Then, N lines follow, each line corresponds to a data set. # A data set consists of three integers separated by a single space. # # Constraints # 1 ??? length of the side ??? 1,000 # N ??? 1,000 # Output # For each data set, print "YES" or "NO". # # Sample Input # 3 # 4 3 5 # 4 3 6 # 8 8 8 # Output for the Sample Input # YES # NO # NO # ################################################################################ if __name__ == "__main__": line = input() a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a) : print("YES") else : print("NO") exit(0)
s475418009
p00003
u779220087
1513092991
Python
Python3
py
Runtime Error
0
0
261
if __name__ == "__main__": line = input() a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a) : print("YES") else : print("NO") exit(0)
s657220650
p00003
u779220087
1513093109
Python
Python3
py
Runtime Error
0
0
217
if __name__ == "__main__": line = input() a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c) : print("YES") else : print("NO")
s326193588
p00003
u779220087
1513093162
Python
Python3
py
Runtime Error
0
0
215
if __name__ == "__main__": line = input() a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b==c*c): print("YES") else: print("NO")
s302999210
p00003
u779220087
1513093250
Python
Python3
py
Runtime Error
0
0
217
if __name__ == "__main__": line = input() a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) c = int(line.split(" ")[2]) if (a*a+b*b == c*c): print("YES") else: print("NO")
s857595348
p00003
u024715419
1513243365
Python
Python3
py
Runtime Error
0
0
158
n = int(input()) for i in range(n): l = list(map(int, line.split())) l.sort() if l[0]**2 + l[1]**2 == l[3]**2: print("YES") else: print("NO")
s436811705
p00003
u255925718
1513526853
Python
Python
py
Runtime Error
0
0
202
ans=[] n=raw_input() while True: line = raw_input() if not line: break a, b, c = (int(i) for i in line.split()) ans.append('YES' if c*c == a*a + b*b else 'NO' ) for i in ans: print i
s401630708
p00003
u255925718
1513527051
Python
Python
py
Runtime Error
0
0
221
from sys import stdin ans=[] n=raw_input() for row in range(int(n)): line = stdin.readlines() a, b, c = (int(i) for i in line.split()) ans.append('YES' if c*c == a*a + b*b else 'NO' ) for i in ans: print i
s274939541
p00003
u298999032
1514182108
Python
Python3
py
Runtime Error
0
0
240
N=int(input()) while 1: a,b,c=map(int,input().split()) A=a**2 B=b**2 C=c**2 if A+B==C: print('YES') elif A+C==B: print('YES') elif B+C==A: print('YES') else: print('NO')
s983757329
p00003
u298999032
1514182221
Python
Python3
py
Runtime Error
0
0
286
N=int(input()) while 1: a,b,c=map(int,input().split()) A=a**2 B=b**2 C=c**2 for i in len(N): if A+B==C: print('YES') elif A+C==B: print('YES') elif B+C==A: print('YES') else: print('NO')
s398056618
p00003
u183224403
1514942662
Python
Python3
py
Runtime Error
0
0
394
while True: try: input_line = input() if input_line == '': break else: nums = list(map(int, input_line.split())) max_num = max(nums) nums.remove(max_num) if max_num**2 == nums[0]**2 + nums[1]**2: print("YES") else: print("NO") except EOFError: break
s050799384
p00003
u009288816
1515076802
Python
Python
py
Runtime Error
0
0
241
import sys a = "" for input in sys.stdin: a += input l = a.split() for i in range(0,len(l),3): if((int(l[i]) * int(l[i]) + int(l[i+1]) * int(l[i+1])) == (int(l[i+2]) * int(l[i+2]))): print "YES" else: print "NO"
s283850575
p00003
u803045841
1516557614
Python
Python3
py
Runtime Error
0
0
99
a, b, c = map(int, input().split()) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s607294626
p00003
u803045841
1516557869
Python
Python3
py
Runtime Error
0
0
107
a, b, c = sorted(map(int, input().split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s793953262
p00003
u803045841
1516558077
Python
Python3
py
Runtime Error
0
0
141
for e in sys.stdin: a, b, c = sorted(map(int, e.split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s566177039
p00003
u803045841
1516558112
Python
Python3
py
Runtime Error
0
0
152
import sys for e in sys.stdin: a, b, c = sorted(map(int, e.split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s482246658
p00003
u803045841
1516558182
Python
Python3
py
Runtime Error
0
0
152
import sys for e in sys.stdin: a, b, c = sorted(map(int, e.split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s563907127
p00003
u803045841
1516558471
Python
Python3
py
Runtime Error
0
0
159
import sys for e in int().input(): a, b, c = sorted(int(sys.stdin.split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s173702518
p00003
u803045841
1516558721
Python
Python3
py
Runtime Error
0
0
155
import sys input() for e in sys.stdin: a, b, c = sorted(int(e.split())) if a**2 + b**2 == c**2: print('YES') else: print('NO')
s629073458
p00003
u150984829
1516625213
Python
Python3
py
Runtime Error
0
0
111
import sys for a,b,c in map(lambda x:sorted(map(int,x.split())),sys.stdin): print(['NO','YES'][a*a+b*b==c*c])
s785146639
p00003
u150984829
1516625347
Python
Python3
py
Runtime Error
0
0
111
import sys for a,b,c in map(lambda x:sorted(map(int,x.split())),sys.stdin): print(['NO','YES'][a*a+b*b==c*c])
s567323953
p00003
u150984829
1516625437
Python
Python3
py
Runtime Error
0
0
123
import sys for a,b,c in map(lambda x:sorted(map(int,x.split())),sys.stdin.readlines()): print(['NO','YES'][a*a+b*b==c*c])
s559243429
p00003
u553148578
1519798554
Python
Python3
py
Runtime Error
0
0
147
n = int(input()) for i in range(n): li = sorted(input().split()) if(li[0] ** 2 + li[1] ** 2 == li[3] ** 2): print('YES') elif: print('NO')
s845675213
p00003
u002010345
1527579103
Python
Python3
py
Runtime Error
0
0
217
def main(): n = int(input()) for i in range(n): a, b, c=(int(input().split())) if a+b<=c or a+c<=b or b+c<=a: print("YES") else: print("NO") main()
s342738888
p00003
u002010345
1527682609
Python
Python3
py
Runtime Error
0
0
140
def main(): n = int(input()) n.sort() if n[0]**2+n[1]**2 != n[2]**2: print("NO") else: print("YES") main()
s068817266
p00003
u517745281
1344349267
Python
Python
py
Runtime Error
0
0
146
[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in input().split(' ') for i in range(int(input()))])]
s389466734
p00003
u517745281
1344349435
Python
Python
py
Runtime Error
0
0
154
[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ') for i in range(int(raw_input()))])]
s886464215
p00003
u517745281
1344349481
Python
Python
py
Runtime Error
0
0
153
[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
s677394921
p00003
u517745281
1344349546
Python
Python
py
Runtime Error
0
0
155
a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
s459737447
p00003
u517745281
1344349827
Python
Python
py
Runtime Error
0
0
155
a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
s710072942
p00003
u517745281
1344351119
Python
Python
py
Runtime Error
0
0
146
a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in input().split(' ')) for i in range(int(input()))])]
s664019481
p00003
u894941280
1344730442
Python
Python
py
Runtime Error
0
2152
148
x = int(input()) for a in range(x): y = map(int,raw_input(),split()) sort(y[3]) if y[2]**2-y[1]**2 == y[0]**2: print "YES" else: print "NO"
s276234060
p00003
u719737030
1350909326
Python
Python
py
Runtime Error
0
0
157
for i in range(int(raw_input())): n = [int(x) for x in raw_input().split()] n.sort(reverse=True) if n[0]**2 == n[1]**2 + n[2]**2: print "
s799818960
p00003
u560838141
1357555259
Python
Python
py
Runtime Error
0
0
505
for i in range(int(raw_input())): &#160;&#160;&#160;&#160;sides = map(int, raw_input().split()) &#160;&#160;&#160;&#160;if sides[0]**2 == sides[1]**2 + sides[2]**2 or\ &#160;&#160;&#160;&#160;&#160;&#160;&#160;sides[1]**2 == sides[2]**2 + sides[0]**2 or\ &#160;&#160;&#160;&#160;&#160;&#160;&#160;sides[2]**2 == sides[0]**2 + sides[1]**2: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;print "YES" &#160;&#160;&#160;&#160;else: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;print "NO"
s496522379
p00003
u560838141
1357555294
Python
Python
py
Runtime Error
0
0
505
for i in range(int(raw_input())): &#160;&#160;&#160;&#160;sides = map(int, raw_input().split()) &#160;&#160;&#160;&#160;if sides[0]**2 == sides[1]**2 + sides[2]**2 or\ &#160;&#160;&#160;&#160;&#160;&#160;&#160;sides[1]**2 == sides[2]**2 + sides[0]**2 or\ &#160;&#160;&#160;&#160;&#160;&#160;&#160;sides[2]**2 == sides[0]**2 + sides[1]**2: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;print "YES" &#160;&#160;&#160;&#160;else: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;print "NO"
s178118819
p00003
u273917701
1360673577
Python
Python
py
Runtime Error
0
0
174
import sys for x in sys.stdin.readlines(): l = map(int,x.split()) l.sort() a,b,c = l if c**2 == a**2 + b**2 : print "YES" else: print "NO"
s613149746
p00003
u273917701
1360758196
Python
Python
py
Runtime Error
0
0
176
import sys for x in sys.stdin.readlines(): l = map(int,x.split()) l.sort() n,a,b,c = l if c**2 == a**2 + b**2 : print "YES" else: print "NO"
s213871436
p00003
u273917701
1360758787
Python
Python
py
Runtime Error
0
0
180
import sys for x in sys.stdin.readlines(): l = map(int,x.split()) l.remove(l[0]) a,b,c = l if c**2 == a**2 + b**2 : print "YES" else: print "NO"