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
s240265452
p00002
u282635979
1362318669
Python
Python
py
Runtime Error
0
0
162
import math while True: x = map(int,raw_input().split(' ')) a = math.log10(x[0] + x[1]) if str(x[0]) != 'homoo...': print(int(a+1)) continue else: break
s874637406
p00002
u282635979
1362318805
Python
Python
py
Runtime Error
0
0
164
import math while True: x = map(int,raw_input().split(' ')) a =int( math.log10(x[0] + x[1]) + 1) if str(x[0]) != 'hellowork': print a continue else: break
s548335987
p00002
u282635979
1362747224
Python
Python
py
Runtime Error
0
0
130
while True: x = map(int,raw_input().split(' ')) a =int( math.log10(x[0] + x[1]) + 1) if a <=1000000 : continue else: break
s394542757
p00002
u743065194
1363000174
Python
Python
py
Runtime Error
0
0
189
from sys import stdin n=int(input()) for line in stdin: x=list(map(int,line.split())) x.sort() y=map(lambda t:t^2,x) if y[0]+y[1]==y[2]: print("YES") else: print("NO")
s990103327
p00002
u282635979
1363404511
Python
Python
py
Runtime Error
0
0
152
import math while True: x = map(int,raw_input().split(' ')) a =int( math.log10(x[0] + x[1]) + 1) if a <=1000000 : print a continue else: break
s389399578
p00002
u282635979
1363404583
Python
Python
py
Runtime Error
0
0
151
import math while True: x = map(int,raw_input().split(' ')) a =int(math.log10(x[0] + x[1]) + 1) if a <=1000000 : print a continue else: break
s011827058
p00002
u282635979
1363404689
Python
Python
py
Runtime Error
0
0
164
import math while True: nums = raw_input() if nums != '': x = map(int,nums.split(' ')) a =int(math.log10(x[0] + x[1]) + 1) print a continue else: break
s148307647
p00002
u282635979
1363404799
Python
Python
py
Runtime Error
0
0
164
import math while True: nums = raw_input() if nums != '': x = map(int,nums.split(' ')) a =int(math.log10(x[0] + x[1]) + 1) print a continue else: break
s534708029
p00002
u282635979
1363406362
Python
Python
py
Runtime Error
0
0
164
import math while True: nums = raw_input() if nums != '': x = map(int,nums.split(' ')) a =int(math.log10(x[0] + x[1]) + 1) print a continue else: break
s883789488
p00002
u350508326
1367929127
Python
Python
py
Runtime Error
0
0
94
import sys for line in sys.stdin n =map(int,line.split()) a = n[0]+n[1] print line(str(a))
s017421255
p00002
u350508326
1367929162
Python
Python
py
Runtime Error
0
0
93
import sys for line in sys.stdin n =map(int,line.split()) a = n[0]+n[1] print len(str(a))
s345300783
p00002
u542421762
1368078082
Python
Python
py
Runtime Error
0
0
222
import sys import re file = open(sys.argv[1], "r") for line in file: ab = map((lambda x: int(x)), re.split(" +", line)) answer = reduce((lambda x, y: x + y), ab, 0) digits = len(str(answer)) print digits
s871855414
p00002
u542421762
1368078796
Python
Python
py
Runtime Error
0
0
352
# # AIZU ONLINE JUDGE: Digit Number # cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp # import sys import re file = open(sys.argv[1], "r") for line in file: ab = map((lambda x: int(x)), re.split(" +", line)) answer = reduce((lambda x, y: x + y), ab, 0) digits = len(str(answer)) print digits file.close()
s528606615
p00002
u542421762
1368080399
Python
Python
py
Runtime Error
0
0
330
# # AIZU ONLINE JUDGE: Digit Number # cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp # import sys import re #file = open(sys.argv[1], "r") for line in sys.stdin: ab = map((int, re.split(" +", line)) answer = reduce((lambda x, y: x + y), ab, 0) digits = len(str(answer)) print digits
s156373514
p00002
u093607836
1369051345
Python
Python
py
Runtime Error
0
0
54
num = int(input()) + int(input()) print(len(str(num)))
s104916414
p00002
u093607836
1369051380
Python
Python
py
Runtime Error
0
0
54
num = int(input()) + int(input()) print(len(str(num)))
s947215457
p00002
u085789778
1374654670
Python
Python
py
Runtime Error
0
0
235
# -*- utf-8 -*- while True: i = map(int, raw_input().split()) if i == None: break a = i[0] b = i[1] s = a + b ans = 0 while s >= 1: s /= 10 ans += 1 print ans
s927760176
p00002
u085789778
1374654925
Python
Python
py
Runtime Error
0
0
250
# -*- utf-8 -*- while True: inp = raw_input() if inp == None: break i = map(int, inp.split()) a = i[0] b = i[1] s = a + b ans = 0 while s >= 1: s /= 10 ans += 1 print an
s799457723
p00002
u085789778
1374654942
Python
Python
py
Runtime Error
0
0
251
# -*- utf-8 -*- while True: inp = raw_input() if inp == None: break i = map(int, inp.split()) a = i[0] b = i[1] s = a + b ans = 0 while s >= 1: s /= 10 ans += 1 print ans
s592943277
p00002
u085789778
1374655067
Python
Python
py
Runtime Error
0
0
249
# -*- utf-8 -*- while True: inp = raw_input() if inp == "": break i = map(int, inp.split()) a = i[0] b = i[1] s = a + b ans = 0 while s >= 1: s /= 10 ans += 1 print ans
s557784965
p00002
u085789778
1374655113
Python
Python
py
Runtime Error
0
0
249
# -*- utf-8 -*- while True: inp = raw_input() if inp == "": break i = map(int, inp.split()) a = i[0] b = i[1] s = a + b ans = 0 while s >= 1: s /= 10 ans += 1 print ans
s353559240
p00002
u228756885
1376482369
Python
Python
py
Runtime Error
0
0
127
#coding UTF-8 import math import sys for line in sys.stdin: a,b = map(int, line.split(' ')) print int(math.log10(a + b) + 1
s069765643
p00002
u866760195
1378213960
Python
Python
py
Runtime Error
0
0
144
import sys import math for line in sys.stdin: a =map(int,raw_input().split()) b = a[0] + a[1] print int(math.log10(b)+1)
s854112774
p00002
u866760195
1378214024
Python
Python
py
Runtime Error
0
0
141
import sys import math for a in sys.stdin: a =map(int,raw_input().split()) b = a[0] + a[1] print int(math.log10(b)+1)
s565242560
p00002
u866760195
1378214288
Python
Python
py
Runtime Error
0
0
133
import sys import math while True: a =map(int,raw_input().split()) b = a[0] + a[1] print int(math.log10(b)+1)
s031701818
p00002
u674319057
1382283538
Python
Python
py
Runtime Error
0
0
165
#!/usr/bin/env python dn = lambda a, b: len(str(a+b)) if __name__ = "__main__": while True: a, b = raw_input().split() print "%d\n" % dn(a, b),
s504862166
p00002
u674319057
1382283559
Python
Python
py
Runtime Error
0
0
149
#!/usr/bin/env python dn = lambda a, b: len(str(a+b)) if __name__ = "__main__": a, b = raw_input().split() print "%d\n" % dn(a, b),
s760000009
p00002
u674319057
1382283604
Python
Python
py
Runtime Error
0
0
166
#!/usr/bin/env python dn = lambda a, b: len(str(a+b)) if __name__ == "__main__": while True: a, b = raw_input().split() print "%d\n" % dn(a, b),
s184819669
p00002
u674319057
1382284141
Python
Python
py
Runtime Error
0
0
187
#!/usr/bin/env python dn = lambda a, b: len(str(a+b)) get = lambda : [int (x) for x in raw_input().split()] if __name__ == "__main__": while True: print "%d\n" % dn(*get()),
s731186474
p00002
u674319057
1382284225
Python
Python
py
Runtime Error
0
0
164
dn = lambda a, b: len(str(a+b)) get = lambda : [int (x) for x in raw_input().split()] if __name__ == "__main__": while True: print "%d\n" % dn(*get()),
s542468197
p00002
u674319057
1382284555
Python
Python
py
Runtime Error
0
0
183
#!/usr/bin/env python dn = lambda a, b: len(str(a+b)) get = lambda : [int(x) for x in raw_input().split()] if __name__ == "__main__": while True: print "%d" % dn(*get())
s107121794
p00002
u146816547
1386686036
Python
Python
py
Runtime Error
0
0
98
import math while True: a, b = map(int,raw_input().split()) print int(math.log10(a+b) + 1)
s204730280
p00002
u146816547
1386686134
Python
Python
py
Runtime Error
0
0
98
import math while True: a, b = map(int,raw_input().split()) print int(math.log10(a+b) + 1)
s033979858
p00002
u146816547
1386686171
Python
Python
py
Runtime Error
0
0
102
while True: import math a, b = map(int,raw_input().split()) print int(math.log10(a+b) + 1)
s706180193
p00002
u146816547
1386686397
Python
Python
py
Runtime Error
0
0
93
import math while 1: a, b = map(int,raw_input().split()) print int(math.log10(a+b)+1)
s930011357
p00002
u912237403
1388815847
Python
Python
py
Runtime Error
0
0
71
import sys print(len(str(sum(map(int,s.split()))))) for s in sys.stdin:
s685380513
p00002
u912237403
1388815893
Python
Python
py
Runtime Error
0
0
72
import sys print(len(str(sum(map(int,s.split()))))) for s in sys.stdin
s642339962
p00002
u230836528
1392092856
Python
Python
py
Runtime Error
0
0
152
while True: [a, b] = map(int, raw_input().split(" ")) n = a+b ans = 1 while(n >= 10): n /= 10 ans += 1 print ans
s060971395
p00002
u230836528
1392093528
Python
Python
py
Runtime Error
0
0
194
# -*- coding: utf-8 -*- for line in sys.stdin.readlines(): a, b = map(int, line.strip().split()) n = a + b ans = 1 while(n >= 10): n /= 10 ans += 1 print ans
s916767885
p00002
u633068244
1393346204
Python
Python
py
Runtime Error
0
0
103
while True: a, b = map(int, raw_input().split()) if a is None: break print len(a+b)
s450601770
p00002
u633068244
1393346424
Python
Python
py
Runtime Error
0
0
75
import sys for x in stdin.sys.read().split(): print len(str(x[0]+x[1])
s747793873
p00002
u633068244
1393346463
Python
Python
py
Runtime Error
0
0
75
import sys for x in sys.stdin.read().split(): print len(str(x[0]+x[1])
s825793031
p00002
u193025715
1394713220
Python
Python
py
Runtime Error
0
0
80
while 1: a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
s328112732
p00002
u193025715
1394713352
Python
Python
py
Runtime Error
0
0
77
while 1: a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
s792908002
p00002
u193025715
1394713439
Python
Python
py
Runtime Error
0
0
64
a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
s323268895
p00002
u140201022
1395768667
Python
Python
py
Runtime Error
0
0
78
import sys for jk in sys.stdin: j,k=map(int,jk.split()) print len(j+k)
s900091325
p00002
u292964502
1396570173
Python
Python
py
Runtime Error
0
0
82
while True: a,b=map(int,raw_input().split()) c = str(a+b) print len(c)
s249013530
p00002
u146816547
1398772649
Python
Python
py
Runtime Error
0
0
71
while True: a,b = map(int,raw_input().split()) print strlen(srt(a+b))
s155812976
p00002
u146816547
1398772681
Python
Python
py
Runtime Error
0
0
68
while True: a,b = map(int,raw_input().split()) print len(srt(a+b))
s609286830
p00002
u146816547
1398772726
Python
Python
py
Runtime Error
0
0
68
while True: a,b = map(int,raw_input().split()) print len(str(a+b))
s881177676
p00002
u703446356
1400079769
Python
Python
py
Runtime Error
0
0
163
while True: try: (a, b) = map(int, raw_input().split()) c = a + b i = 0 while c != 0: c /= 10 i += 1 print i except: pass:
s508803148
p00002
u618672141
1403737090
Python
Python3
py
Runtime Error
0
0
247
def digits(n): if n < 10: return 1 c = 0 while n > 0: c += 1 n = n // 10 return c inp = input() while (inp != ''): n, m = inp.split(' ') n = int(n) m = int(m) print(digits(n + m)) inp = input()
s655328803
p00003
u525366883
1535372099
Python
Python
py
Runtime Error
0
0
135
for i in range(3): a,b,c = map(int, raw_input().split()) if a*a == b*b + c*c: print "YES" else: print "NO"
s161085846
p00003
u525366883
1535372250
Python
Python
py
Runtime Error
0
0
177
n = int(raw_input()) for i in range(n): a,b,c = map(int, raw_input().split()).sort(reverse = True) if a*a == b*b + c*c: print "YES" else: print "NO"
s593134876
p00003
u923573620
1535530987
Python
Python3
py
Runtime Error
0
0
334
number = int(input()) for i in range(number): tri = map(int, input.split(" ")) if tri[0] > tri[1]: buf = tri[0] tri[0] = tri[1] tri[1] = buf if tri[1] > tri[2]: buf = tri[1] tri[1] = tri[2] tri[2] = buf if tri[0] * tri[0] + tri[1] * tri[1] == tri[2] * tri[2]: print("YES") else: print("NO")
s106765199
p00003
u923573620
1535531072
Python
Python3
py
Runtime Error
0
0
336
number = int(input()) for i in range(number): tri = map(int, input().split(" ")) if tri[0] > tri[1]: buf = tri[0] tri[0] = tri[1] tri[1] = buf if tri[1] > tri[2]: buf = tri[1] tri[1] = tri[2] tri[2] = buf if tri[0] * tri[0] + tri[1] * tri[1] == tri[2] * tri[2]: print("YES") else: print("NO")
s832758004
p00003
u011621222
1551537659
Python
Python3
py
Runtime Error
0
0
168
n=int(input()) for i in range(n): s=input.split() for j in range(len(s)): s[j]=int(s[j]) s.sort() print("YES" if(pow(s[0],2)+pow(s[1],2)==pow(s[2],2)) else "NO")
s128817774
p00003
u990459103
1558944982
Python
Python3
py
Runtime Error
0
0
186
N = int(input()) for i in range(N) : a,b,c = map(int,input().split(" ")) p = [a,b,c] p.sort() if pow(p[0],2)+pow(p[1],2)==pow[p[2],2] print("YES") else print("NO")
s440106424
p00003
u990459103
1558945112
Python
Python3
py
Runtime Error
0
0
191
N = int(input()) for i in range(N) : a,b,c = map(int,input().split(" ")) p = [a,b,c] p.sort() if pow(p[0],2)+pow(p[1],2)==pow[p[2],2]: print("YES") else print("NO")
s376944018
p00003
u990459103
1558945386
Python
Python3
py
Runtime Error
0
0
169
N = int(input()) for i in range(N) : p = list(map(int,input().split(" "))) p.sort() if p[0]**2 + p[1]**2== p[2]**2: print("YES") else print("NO")
s414772436
p00003
u990459103
1558945496
Python
Python3
py
Runtime Error
0
0
161
N = int(input()) for i in range(N) : a,b,c = sort(list(map(int,input().split(" ")))) if a**2 + b**2== c**2: print("YES") else print("NO")
s332739608
p00003
u990459103
1558945643
Python
Python3
py
Runtime Error
0
0
160
N = int(input()) for i in range(N) : a,b,c = sorted(list(map(int,input().split()))) if a**2 + b**2== c**2: print("YES") else print("NO")
s013675110
p00003
u990459103
1558945824
Python
Python3
py
Runtime Error
0
0
173
N = int(input()) for i in range(N) : p = list(map(int,input().split())) p.sort() if p[0]*p[0] + p[1]*p[1] == p[2]*p[2]: print("YES") else print("NO")
s082597483
p00003
u990459103
1558945884
Python
Python3
py
Runtime Error
0
0
172
n = int(input()) for i in range(n): p = list(map(int,input().split())) p.sort() if p[0]*p[0] + p[1]*p[1] == p[2]*p[2]: print("YES") else print("NO")
s882851645
p00003
u990459103
1558945923
Python
Python3
py
Runtime Error
0
0
189
n=int(input()) for i in range(n): p=list(map(int,input().split())) p.sort() a=x[0] b=x[1] c=x[2] if a*a+b*b==c*c: print('YES') else: print('NO')
s873750436
p00003
u990459103
1558949315
Python
Python3
py
Runtime Error
0
0
236
n=int(input()) for i in range(n): a,b,c = input().split() x = int(a) y = int(b) z = int(c) p = [a,b,c] p.sort() if pow(p[0],2) + pow(p[1],2) == pow(p[2],2): print('YES') else: print('NO')
s885475124
p00003
u990459103
1558949867
Python
Python
py
Runtime Error
0
0
236
n=int(input()) for i in range(n): a,b,c = input().split() x = int(a) y = int(b) z = int(c) p = [x,y,z] p.sort() if pow(p[0],2) + pow(p[1],2) == pow(p[2],2): print('YES') else: print('NO')
s670881812
p00003
u990459103
1558949903
Python
Python
py
Runtime Error
0
0
236
n=int(input()) for i in range(n): a,b,c = input().split() x = int(a) y = int(b) z = int(c) p = [x,y,z] p.sort() if pow(p[0],2) + pow(p[1],2) == pow(p[2],2): print('YES') else: print('NO')
s735940207
p00003
u477023447
1558952078
Python
Python3
py
Runtime Error
0
0
260
= int(input()) for i in range(n): tri_list = list(map(int,input().split(" "))) #tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 if a == b: print("YES") else: print("NO")
s812995053
p00003
u477023447
1558952946
Python
Python3
py
Runtime Error
0
0
326
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) k = int(input()) tri_list = list(k.split(" ")) tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 if a == b: print("YES") else: print("NO")
s390232760
p00003
u477023447
1558952964
Python
Python3
py
Runtime Error
0
0
326
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) k = int(input()) tri_list = list(k.split(" ")) tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 if a == b: print("YES") else: print("NO")
s556873994
p00003
u477023447
1558952979
Python
Python3
py
Runtime Error
0
0
326
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) k = int(input()) tri_list = list(k.split(" ")) tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 if a == b: print("YES") else: print("NO")
s261335877
p00003
u477023447
1558952997
Python
Python3
py
Runtime Error
0
0
326
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) k = int(input()) tri_list = list(k.split(" ")) tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 if a == b: print("YES") else: print("NO")
s748899183
p00003
u051394180
1558956695
Python
Python3
py
Runtime Error
0
0
150
for i in int(input()): values = sorted(map(lambda x: x^2, input().split())) if values[2] = values[1] + values[0]: print 'YES' else: print 'NO'
s552080361
p00003
u051394180
1558956841
Python
Python3
py
Runtime Error
0
0
156
for i in int(input()): values = sorted(map(lambda x: int(x)^2, input().split())) if values[2] == values[1] + values[0]: print 'YES' else: print 'NO'
s015126207
p00003
u051394180
1558956860
Python
Python3
py
Runtime Error
0
0
163
for i in range(int(input())): values = sorted(map(lambda x: int(x)^2, input().split())) if values[2] == values[1] + values[0]: print 'YES' else: print 'NO'
s798191768
p00003
u051394180
1558957234
Python
Python3
py
Runtime Error
0
0
169
for i in range(int(input())): values = sorted(map(lambda x: int(x)^2, raw_input().split())) if values[2] == values[1] + values[0]: print('YES') else: print('NO')
s537625080
p00003
u063179562
1406723735
Python
Python
py
Runtime Error
0
0
131
n = int(input()) for i in range(0, n): a, b, c = map(int, sorted(input().split())) print("YES" if c*c == a*a+b*b else "NO")
s114831161
p00003
u578674365
1418632457
Python
Python
py
Runtime Error
0
0
280
import sys data_length = int(sys.stdin.readline()) lines[] for x in xrange(data_length): input_line = sys.stdin.readline() lines = map(int, input_line.strip().split()) lines.sort(reverse = True) if lines[0]**2 == (lines[1]**2 + lines[2]**2): print "YES" else: print "NO"
s518136301
p00003
u989992553
1420878363
Python
Python
py
Runtime Error
0
0
370
def check_right_triangle(side1, side2, side3): if side1**2 == side2**2 + side3**2: return True if side2**2 == side3**2 + side1**2: return True if sides3**3 == side1**2 + side2**2: return True return False for i in range(int(raw_input())): sides = map(int, raw_input().split()) if check_right_triangle(sides[0], sides[1], sides[2]): print "YES" print "NO"
s011141651
p00003
u442472098
1423219678
Python
Python
py
Runtime Error
0
0
291
#!/usr/bin/env python3 def right_triangle(edge): # a < b < c return (edge[0] ** 2 + edge[1] ** 2 == edge[2] ** 2) n = int(input()) for i in range(n): edge = sorted([int(x) for x in input().split()]) if right_triangle(edge): print("YES") else: print("NO")
s408552741
p00003
u540744789
1425551535
Python
Python
py
Runtime Error
0
0
169
import sys x=raw_input() for abc in sys.stdin: L=map(int,abc.split(" ")).sort() if L[0]**2 + L[1]**2 == L[2]**2: print "YES" else: print "NO"
s055155347
p00003
u308369184
1430560126
Python
Python3
py
Runtime Error
0
0
162
while True: try: s=input().split(" ") s.sort if s[0]**2+s[1]**2=s[2]**: print("YES") else: print("NO")
s956174551
p00003
u308369184
1430560185
Python
Python3
py
Runtime Error
0
0
188
while True: try: s=input().split(" ") s.sort if s[0]**2+s[1]**2=s[2]**: print("YES") else: print("NO") except: break
s414657545
p00003
u308369184
1430560225
Python
Python3
py
Runtime Error
0
0
192
while True: try: s=int.input().split(" ") s.sort if s[0]**2+s[1]**2=s[2]**: print("YES") else: print("NO") except: break
s898287147
p00003
u308369184
1430560239
Python
Python3
py
Runtime Error
0
0
193
while True: try: s=int(input().split(" ")) s.sort if s[0]**2+s[1]**2=s[2]**: print("YES") else: print("NO") except: break
s194689862
p00003
u308369184
1430560740
Python
Python3
py
Runtime Error
0
0
188
while True: try: s=input().split(" ") s.sort if s[0]**2+s[1]**2=s[2]**: print("YES") else: print("NO") except: break
s327352985
p00003
u308369184
1430562740
Python
Python3
py
Runtime Error
0
0
267
n=int(input())???#?????????????????????????????° for i in range(n) s=input().split(" ") s=[int(j) for j in s] s.sort() if(s[0]**2+s[1]**2==s[2]**2): print("YES") else: print("NO")
s896778627
p00003
u308369184
1430562763
Python
Python3
py
Runtime Error
0
0
235
n=int(input())??? for i in range(n) s=input().split(" ") s=[int(j) for j in s] s.sort() if(s[0]**2+s[1]**2==s[2]**2): print("YES") else: print("NO")
s672553201
p00003
u308369184
1430562792
Python
Python3
py
Runtime Error
0
0
232
n=int(input()) for i in range(n) s=input().split(" ") s=[int(j) for j in s] s.sort() if(s[0]**2+s[1]**2==s[2]**2): print("YES") else: print("NO")
s890397816
p00003
u747594996
1434153401
Python
Python3
py
Runtime Error
0
0
230
def main: n = int(input()) for i in range(n): s1, s2, s3 = map(int, input().split()) if s1 == s2 == s3: print('YES') else: print('NO') if __name__=="__main__": main()
s491384898
p00003
u492083164
1434791700
Python
Python3
py
Runtime Error
0
0
114
num=int(input()) for i in range(num): a,b,c=input().split(" ") if(a==b==c): print("YES") else: print("NO"
s544385172
p00003
u982618289
1450257550
Python
Python3
py
Runtime Error
0
0
179
for i in range(int(input())): a = sorted(map(int,input().split()),reversed = True) if a[0]**2 == a[1]**2 + a[2]**2: print("YES") else: print("NO")
s009472724
p00003
u919202930
1459700261
Python
Python
py
Runtime Error
0
0
160
N=int(input()) for n in range(N): sides = list(map(int,input().split())) sides.sort() if sides[-1] < sides[-2]+sides[-3]: print("YES") else: print("NO")
s083449171
p00003
u018967850
1462444411
Python
Python
py
Runtime Error
0
0
321
def check(List): List.sort() List.revers() if List[0]^2 == List[1]^2+List[2]^2: return True else: return False while True: N = input() for i in range(N): list = [] for j in range(3): list.append(input()) print check(list)
s280191045
p00003
u545973195
1475162828
Python
Python3
py
Runtime Error
0
0
137
N=int(input()) for i in range(N): a=map(int,input().split()) a.sort() if a[0]**2+a[1]**2==a[2]**2: print("YES") else: print("NO")
s575528753
p00003
u545973195
1475162956
Python
Python3
py
Runtime Error
0
0
194
N=int(input()) answer="" for i in range(N): if answer!="": answer+="\n" a=map(int,input().split()) a.sort() if a[0]**2+a[1]**2==a[2]**2: answer+="YES" else: answer+="NO" print(answer)
s249060289
p00003
u505912349
1475832495
Python
Python3
py
Runtime Error
0
0
156
import sys for line in sys.stdin: a,b,c = [int(x) for x in line.split()] if (a**2+b**2) == c**2: print('YES') else: print('NO')
s904713094
p00003
u505912349
1475832557
Python
Python3
py
Runtime Error
0
0
149
import sys for line in sys.stdin: a,b,c = [int(x) for x in line.split()] if (a**2+b**2) == c**2: print('YES') else: print('NO')
s966425418
p00003
u505912349
1475840153
Python
Python3
py
Runtime Error
0
0
280
import sys array = [] 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