s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | File "/tmp/tmpq8egw95v/tmpbrj9s0lg.py", line 16
Rec(N,List
^
SyntaxError: '(' was never closed
| |
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" | File "/tmp/tmpet1jh0o3/tmp96n8476p.py", line 9
print "YES" if r else "NO"
^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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') | Traceback (most recent call last):
File "/tmp/tmp29kzzrjk/tmpq1q_mjm2.py", line 1, in <module>
N = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
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') | Traceback (most recent call last):
File "/tmp/tmp7xn243w0/tmpwj420eui.py", line 1, in <module>
N = int(raw_input())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
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" | File "/tmp/tmp9epb9461/tmplxq6t_f1.py", line 3
else return 0
^^^^^^
SyntaxError: expected ':'
| |
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' | File "/tmp/tmptsa728zw/tmpygr4kli4.py", line 3
print 'YES' if a*a+b*b==c*c else 'NO'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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()))] | Traceback (most recent call last):
File "/tmp/tmp1xncfvag/tmpqebhgzfz.py", line 1, in <module>
[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()))]
^^^^^^^
EOFError: EOF when reading a line
| |
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()))] | Traceback (most recent call last):
File "/tmp/tmphwqb20q6/tmp6yk33ctp.py", line 1, in <module>
[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()))]
^^^^^^^
EOFError: EOF when reading a line
| |
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()))] | Traceback (most recent call last):
File "/tmp/tmpjlwc4mkf/tmpq8ypq1bb.py", line 1, in <module>
[ 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()))]
^^^^^^^
EOFError: EOF when reading a line
| |
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()))] | Traceback (most recent call last):
File "/tmp/tmpdhpwgppq/tmp23dm9f2o.py", line 1, in <module>
[ 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()))]
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpf0nqnnz0/tmp2jek6nry.py", line 2, in <module>
edges = list(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
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]] | /tmp/tmpte8qifnp/tmp4b00n55h.py:1: SyntaxWarning: invalid decimal literal
[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]] | /tmp/tmpcr4ihyiv/tmpnqdilcki.py:1: SyntaxWarning: invalid decimal literal
[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)) | Traceback (most recent call last):
File "/tmp/tmplh69_lfd/tmpxfhkirn5.py", line 12, in <module>
l = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | File "/tmp/tmpzd4nc7wq/tmpa9uxgw53.py", line 16
if number_1 = number_2 + number_3:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
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") | File "/tmp/tmpr4kq8q3t/tmprxz5857s.py", line 16
if number_1 = number_2 + number_3:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
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") | Traceback (most recent call last):
File "/tmp/tmp7uaxiq1r/tmpx3haokce.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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')
| Traceback (most recent call last):
File "/tmp/tmpzj9ccb_o/tmpvi40730_.py", line 5, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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')
| Traceback (most recent call last):
File "/tmp/tmpcilfq3qx/tmpdadb2h_7.py", line 5, in <module>
num = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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') | Traceback (most recent call last):
File "/tmp/tmpj5disna2/tmpmf6f0x7x.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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]) | File "/tmp/tmpc3fzl49g/tmp7e6cacgy.py", line 9
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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]) | File "/tmp/tmp1orouto5/tmpqeemrqdr.py", line 9
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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" | File "/tmp/tmpofps5364/tmpz3m1qcwv.py", line 11
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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" | File "/tmp/tmpwexjpmrc/tmp483whrn0.py", line 4
a.append(map(int, raw_input(.split)))
^
SyntaxError: invalid syntax
| |
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" | File "/tmp/tmpwme6um9i/tmp1pnnz1ab.py", line 4
a.append(map(int, raw_input().split())
^
SyntaxError: '(' was never closed
| |
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') | Traceback (most recent call last):
File "/tmp/tmpjxxrvmc2/tmpevjbpc3t.py", line 1, in <module>
deta_set_count = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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') | Traceback (most recent call last):
File "/tmp/tmp9x7gnccb/tmpjmv0k_01.py", line 1, in <module>
deta_set_count = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmp2r5x0ohd/tmptsplt2m2.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpsxpm1o7x/tmpby32lg8q.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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")
}
}
}); | File "/tmp/tmp0dn0kcsd/tmpcgyf8q27.py", line 12
}else{
^
SyntaxError: unmatched '}'
| |
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() | Traceback (most recent call last):
File "/tmp/tmp0eehv0xf/tmpohwqvzf9.py", line 12, in <module>
main()
File "/tmp/tmp0eehv0xf/tmpohwqvzf9.py", line 2, in main
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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() | Traceback (most recent call last):
File "/tmp/tmp3suy74h9/tmp_w33525p.py", line 18, in <module>
main()
File "/tmp/tmp3suy74h9/tmp_w33525p.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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() | Traceback (most recent call last):
File "/tmp/tmpvqv135l7/tmpcx5oyg2l.py", line 22, in <module>
main()
File "/tmp/tmpvqv135l7/tmpcx5oyg2l.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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 | File "/tmp/tmpeywezyxm/tmpvh0hxmn2.py", line 12
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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 | File "/tmp/tmpsukbrj7u/tmpj82qte8_.py", line 12
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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 | File "/tmp/tmp1vdrlyxe/tmpgvaicyek.py", line 13
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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') | Traceback (most recent call last):
File "/tmp/tmp0u1h50l_/tmp1eyshc2k.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | File "/tmp/tmp5z6wet9x/tmpe_pryzxr.py", line 6
else:
^
IndentationError: unindent does not match any outer indentation level
| |
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") | Traceback (most recent call last):
File "/tmp/tmp9pg2wmn6/tmp0niwqm6v.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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 | Traceback (most recent call last):
File "/tmp/tmphwul1eqq/tmplto9wfyz.py", line 3, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmp20ft4u5z/tmpq9k0uk4j.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | File "/tmp/tmpxyv0c5fg/tmpmdwrnhsp.py", line 3
????????num=map(int, raw_input().split())
^
IndentationError: expected an indented block after 'for' statement on line 2
| |
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") | File "/tmp/tmp05i1ynh1/tmpx2yk0af1.py", line 3
????????num=map(int, input().split())
^
IndentationError: expected an indented block after 'for' statement on line 2
| |
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') | Traceback (most recent call last):
File "/tmp/tmpbdlekbtm/tmpev2r1j7h.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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]) | Traceback (most recent call last):
File "/tmp/tmpjfrt9e0e/tmp49lgt56f.py", line 1, in <module>
times=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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]) | Traceback (most recent call last):
File "/tmp/tmp3i5j269p/tmp7lsocrfk.py", line 1, in <module>
times=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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" | File "/tmp/tmp6hm532j8/tmp_1gzyzue.py", line 7
print "Yes"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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") | Traceback (most recent call last):
File "/tmp/tmpstdbenqa/tmpr9o5nakg.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpw6d444x5/tmpklrvqm9b.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmp6kacvcuj/tmpzj97r3ju.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmppvs9ct14/tmpp9z9fd2k.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmphqslvk4k/tmpram7va04.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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???) | File "/tmp/tmpxp_6ma_l/tmpastnttn_.py", line 6
print(???YES???)
^
SyntaxError: invalid syntax
| |
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???) | File "/tmp/tmp8jj40b8d/tmp3y_m_otq.py", line 6
print(???YES???)
^
SyntaxError: invalid syntax
| |
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???) | File "/tmp/tmpnl_9f9mm/tmp5uu5s_4g.py", line 9
print(???YES???)
^
SyntaxError: invalid syntax
| |
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???) | File "/tmp/tmprq1per78/tmp4iawpj86.py", line 4
print(???YES???)
^
SyntaxError: invalid syntax
| |
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???) | File "/tmp/tmp45vhbo2f/tmpez1ubhmr.py", line 6
print(???YES???)
^
SyntaxError: invalid syntax
| |
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) | Traceback (most recent call last):
File "/tmp/tmpvy36f60w/tmp31108mi9.py", line 32, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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) | Traceback (most recent call last):
File "/tmp/tmpne5w0_j9/tmpvl4qset3.py", line 2, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpvp9bt4i8/tmp3fjp44y_.py", line 2, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpz_wsu8ru/tmpv3sw3t5h.py", line 2, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpcipmotnw/tmpx4vkm223.py", line 2, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
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") | Traceback (most recent call last):
File "/tmp/tmpnvbtani1/tmpg98q_vx0.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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 | File "/tmp/tmpcyyjqgwu/tmp2tdl31yl.py", line 9
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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 | File "/tmp/tmpoinksqfw/tmpskfalvx7.py", line 9
print i
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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') | Traceback (most recent call last):
File "/tmp/tmpy7hyw1ie/tmppwghyruj.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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') | Traceback (most recent call last):
File "/tmp/tmpotg384hu/tmp9tgjdpx3.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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"
| File "/tmp/tmpwl8xju9l/tmp8zbi23br.py", line 9
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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')
| Traceback (most recent call last):
File "/tmp/tmpfs73yu2m/tmpefkv2f5r.py", line 1, in <module>
a, b, c = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
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')
| Traceback (most recent call last):
File "/tmp/tmpbvojha8x/tmpw50zgwgp.py", line 1, in <module>
a, b, c = sorted(map(int, input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
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')
| Traceback (most recent call last):
File "/tmp/tmp1dfhhnwd/tmpvv8bdo6a.py", line 1, in <module>
for e in sys.stdin:
^^^
NameError: name 'sys' is not defined
| |
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')
| Traceback (most recent call last):
File "/tmp/tmpycpo1l69/tmp5ps56ywl.py", line 2, in <module>
for e in int().input():
^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'input'
| |
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')
| Traceback (most recent call last):
File "/tmp/tmp37lngbez/tmp8jqur6w2.py", line 2, in <module>
input()
EOFError: EOF when reading a line
| |
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')
| File "/tmp/tmpcyib7972/tmpqm27vseg.py", line 6
elif:
^
SyntaxError: invalid syntax
| |
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()
| Traceback (most recent call last):
File "/tmp/tmpb1qy1vpn/tmpsib50kp5.py", line 10, in <module>
main()
File "/tmp/tmpb1qy1vpn/tmpsib50kp5.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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()
| Traceback (most recent call last):
File "/tmp/tmpyf_l0zx9/tmp82jfxv5r.py", line 9, in <module>
main()
File "/tmp/tmpyf_l0zx9/tmp82jfxv5r.py", line 2, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
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()))])] | File "/tmp/tmpb3_b0huu/tmpsxktqs2q.py", line 1
[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()))])]
^
SyntaxError: invalid non-printable character U+3000
| |
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()))])] | File "/tmp/tmphgvonhbu/tmp_tv8i6z8.py", line 1
[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()))])]
^
SyntaxError: invalid non-printable character U+3000
| |
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()))])] | Traceback (most recent call last):
File "/tmp/tmpq3zy1evz/tmpl8qllgwr.py", line 1, in <module>
[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()))])]
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
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()))])] | Traceback (most recent call last):
File "/tmp/tmpuyxz7fmo/tmpggngtfoi.py", line 1, in <module>
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()))])]
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
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()))])] | Traceback (most recent call last):
File "/tmp/tmplh_g9074/tmprtektszk.py", line 1, in <module>
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()))])]
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
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()))])] | Traceback (most recent call last):
File "/tmp/tmprdmlamr4/tmpmam_lw6b.py", line 1, in <module>
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()))])]
^^^^^^^
EOFError: EOF when reading a line
| |
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" | File "/tmp/tmpgvw8goi8/tmpbr4jxkfk.py", line 4
sort(y[3])
IndentationError: unexpected indent
| |
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 " | File "/tmp/tmpay7bt8vz/tmpm4c3chnb.py", line 5
print "
^
SyntaxError: unterminated string literal (detected at line 5)
| |
s799818960 | p00003 | u560838141 | 1357555259 | Python | Python | py | Runtime Error | 0 | 0 | 505 | for i in range(int(raw_input())):
    sides = map(int, raw_input().split())
    if sides[0]**2 == sides[1]**2 + sides[2]**2 or\
       sides[1]**2 == sides[2]**2 + sides[0]**2 or\
       sides[2]**2 == sides[0]**2 + sides[1]**2:
           print "YES"
    else:
        print "NO" | File "/tmp/tmpy7a06xtu/tmpyzl4uca6.py", line 2
    sides = map(int, raw_input().split())
^
IndentationError: expected an indented block after 'for' statement on line 1
| |
s496522379 | p00003 | u560838141 | 1357555294 | Python | Python | py | Runtime Error | 0 | 0 | 505 | for i in range(int(raw_input())):
    sides = map(int, raw_input().split())
    if sides[0]**2 == sides[1]**2 + sides[2]**2 or\
       sides[1]**2 == sides[2]**2 + sides[0]**2 or\
       sides[2]**2 == sides[0]**2 + sides[1]**2:
           print "YES"
    else:
        print "NO" | File "/tmp/tmpc7g6bzgl/tmpfcvc192z.py", line 2
    sides = map(int, raw_input().split())
^
IndentationError: expected an indented block after 'for' statement on line 1
| |
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" | File "/tmp/tmp0efb616t/tmp37bxl9u_.py", line 7
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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" | File "/tmp/tmp8b_4at9t/tmp3m48n_1i.py", line 7
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
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" | File "/tmp/tmpahw01jqa/tmpt01t7nj4.py", line 7
print "YES"
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.