submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s537338984
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s874637406
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s548335987
p00002
Runtime Error
while True: x = map(int,raw_input().split(' ')) a =int( math.log10(x[0] + x[1]) + 1) if a <=1000000 : continue else: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s394542757
p00002
Runtime Error
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")
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s990103327
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s389399578
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s011827058
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s883789488
p00002
Runtime Error
import sys for line in sys.stdin n =map(int,line.split()) a = n[0]+n[1] print line(str(a))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s017421255
p00002
Runtime Error
import sys for line in sys.stdin n =map(int,line.split()) a = n[0]+n[1] print len(str(a))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s345300783
p00002
Runtime Error
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s871855414
p00002
Runtime Error
# # 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)...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s528606615
p00002
Runtime Error
# # 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)) pr...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s156373514
p00002
Runtime Error
num = int(input()) + int(input()) print(len(str(num)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s947215457
p00002
Runtime Error
# -*- 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s927760176
p00002
Runtime Error
# -*- 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s799457723
p00002
Runtime Error
# -*- 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s592943277
p00002
Runtime Error
# -*- 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s353559240
p00002
Runtime Error
#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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s069765643
p00002
Runtime Error
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s854112774
p00002
Runtime Error
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s565242560
p00002
Runtime Error
import sys import math while True: a =map(int,raw_input().split()) b = a[0] + a[1] print int(math.log10(b)+1)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s031701818
p00002
Runtime Error
#!/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),
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s504862166
p00002
Runtime Error
#!/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),
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s760000009
p00002
Runtime Error
#!/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),
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s184819669
p00002
Runtime Error
#!/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()),
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s731186474
p00002
Runtime Error
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()),
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s542468197
p00002
Runtime Error
#!/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())
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s107121794
p00002
Runtime Error
import math while True: a, b = map(int,raw_input().split()) print int(math.log10(a+b) + 1)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s033979858
p00002
Runtime Error
while True: import math a, b = map(int,raw_input().split()) print int(math.log10(a+b) + 1)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s706180193
p00002
Runtime Error
import math while 1: a, b = map(int,raw_input().split()) print int(math.log10(a+b)+1)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s930011357
p00002
Runtime Error
import sys print(len(str(sum(map(int,s.split()))))) for s in sys.stdin:
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s685380513
p00002
Runtime Error
import sys print(len(str(sum(map(int,s.split()))))) for s in sys.stdin
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s642339962
p00002
Runtime Error
while True: [a, b] = map(int, raw_input().split(" ")) n = a+b ans = 1 while(n >= 10): n /= 10 ans += 1 print ans
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s060971395
p00002
Runtime Error
# -*- 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s916767885
p00002
Runtime Error
while True: a, b = map(int, raw_input().split()) if a is None: break print len(a+b)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s450601770
p00002
Runtime Error
import sys for x in stdin.sys.read().split(): print len(str(x[0]+x[1])
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s747793873
p00002
Runtime Error
import sys for x in sys.stdin.read().split(): print len(str(x[0]+x[1])
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s825793031
p00002
Runtime Error
while 1: a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s328112732
p00002
Runtime Error
while 1: a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s792908002
p00002
Runtime Error
a,b = map(int, raw_input().split()) print len(str(a + b)) + "\n"
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s323268895
p00002
Runtime Error
import sys for jk in sys.stdin: j,k=map(int,jk.split()) print len(j+k)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s900091325
p00002
Runtime Error
while True: a,b=map(int,raw_input().split()) c = str(a+b) print len(c)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s249013530
p00002
Runtime Error
while True: a,b = map(int,raw_input().split()) print strlen(srt(a+b))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s155812976
p00002
Runtime Error
while True: a,b = map(int,raw_input().split()) print len(srt(a+b))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s609286830
p00002
Runtime Error
while True: a,b = map(int,raw_input().split()) print len(str(a+b))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s881177676
p00002
Runtime Error
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:
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s508803148
p00002
Runtime Error
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()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s663133214
p00003
Wrong Answer
n = int(raw_input()) for i in range(n): a,b,c = map(int, raw_input().split()) if a*a == b*b + c*c: print "YES" else: print "NO"
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s584053795
p00003
Wrong Answer
number = int(input()) for i in range(number): tri = list(map(int, input().split(" "))) print(str(tri[0])) print(str(tri[1])) print(str(tri[2])) 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] *...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s391305126
p00003
Wrong Answer
N = int(input()) for i in range(N): sides = list(map(int, input().split())) if max(sides) == min(sides): print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s422499200
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) for i in range(N): tri_list[i].sort() print(tri_list[i]) if int(tri_list[i][2])^2 == int(tri_list[i][0])^2 + int(tri_list[i][1])^2 : print("YES") else : print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s461625888
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) for i in range(N): tri_list[i].sort() if int(tri_list[i][2])^2 == int(tri_list[i][0])^2 + int(tri_list[i][1])^2 : print("YES") else : print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s419710756
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2])^2 == int(tri_list[i][0])^2 + int(tri_list[i][1])^2 : print("YES") else : print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s523524642
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) for i in range(N): tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2 : print("YES") else : print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s638080785
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2 : print("YES") else : print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s829620599
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2 : print('YES') else : print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s972437996
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2: print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s965611943
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) for i in range(N): tri_list[i].sort() if pow(int(tri_list[i][2]),2) == pow(int(tri_list[i][0]),2) + pow(int(tri_list[i][1]),2): print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s237424777
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if pow(int(tri_list[i][2]),2) == pow(int(tri_list[i][0]),2) + pow(int(tri_list[i][1]),2): print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s588624118
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2 : print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s992393567
p00003
Wrong Answer
tri_list = [] N = int(input()) for i in range(N): tri = input() tri_list.append(tri.split()) tri_list[i].sort() if int(tri_list[i][2]) ** 2 == int(tri_list[i][0]) ** 2 + int(tri_list[i][1]) ** 2 : print("YES") else: print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s133037035
p00003
Wrong Answer
N = int(input()) for i in range(N): tri = input() tri_list = tri.split() tri_list.sort() print(tri_list) if int(tri_list[2]) ** 2 == int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 : print("YES") else: print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s220584200
p00003
Wrong Answer
N = int(input()) for i in range(N): tri = input() tri_list = tri.split() tri_list.sort() if int(tri_list[2]) ** 2 == int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 : print("YES") else: print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s441623008
p00003
Wrong Answer
N = int(input()) for i in range(N): tri = input() tri_list = tri.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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s319936026
p00003
Wrong Answer
n = int(input()) for i in range(n): tri = input() tri_list = tri.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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s064104143
p00003
Wrong Answer
n = int(input()) for i in range(n): tri = input() tri_list = tri.split() tri_list.sort() a = int(tri_list[2]) ** 2 b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2 print("a") print("b") if a == b: print("YES") else: print("NO")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s671331119
p00003
Wrong Answer
n = int(input()) for i in range(n): tri = input() tri_list = tri.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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s246914399
p00003
Wrong Answer
n = int(input()) for i in range(n): tri = input() tri_list = tri.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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s820301641
p00003
Wrong Answer
n = int(input()) for i in range(n): tri_list = 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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s789859226
p00003
Wrong Answer
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) tri_list = list(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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s213942140
p00003
Wrong Answer
tri_list = [] n = int(input()) for i in range(n): #tri_list = list(map(int,input().split(" "))) k = 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")...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s917655159
p00003
Wrong Answer
for i in range(int(raw_input())): values = sorted(map(lambda x: int(x)^2, raw_input().split())) if values[2] == values[1] + values[0]: print 'YES' else: print 'NO'
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s813289072
p00003
Wrong Answer
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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s124057168
p00003
Wrong Answer
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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s130733144
p00003
Wrong Answer
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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s024953692
p00003
Wrong Answer
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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s947340056
p00003
Wrong Answer
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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s328160469
p00003
Wrong Answer
a = int(input()) for i in range(a): values = sorted(map(lambda x: int(x)^2, input().split(' '))) if values[2] == values[1] + values[0]: print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s032152465
p00003
Wrong Answer
# -*- coding: utf-8 -*- 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')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s989602292
p00003
Wrong Answer
# -*- coding: utf-8 -*- 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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s651916007
p00003
Wrong Answer
n = int(input()) for i in range(n): x, y, z =map(int, input().split()) if x*x + y*y == z*z or y*y + z*z == x*x or x*x + z*z == y*y : print("Yes") else: print("No")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s913932892
p00003
Wrong Answer
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")
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s481129467
p00003
Wrong Answer
import sys __author__ = 'bisuk' i = 0 list = [] for line in sys.stdin.readlines(): # list1 = line.split(" ") list.append(line) # list.append(int(line.strip("\n"))) # print("N = "+str(list[0])) #print(list) for i in range(1, int(list[0]) + 1): #print("i="+str(i) + " :" + list[i]), list2 = sorted(...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s537212855
p00003
Wrong Answer
import sys i = 0 list = [] for line in sys.stdin.readlines(): # list1 = line.split(" ") list.append(line) # list.append(int(line.strip("\n"))) # print("N = "+str(list[0])) #print(list) for i in range(1, int(list[0]) + 1): #print("i="+str(i) + " :" + list[i]), list2 = sorted(list[i].strip("\n").spl...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s767127773
p00003
Wrong Answer
import sys __author__ = 'bisuk' i = 0 list0 = [] for line in sys.stdin.readlines(): # list1 = line.split(" ") list0.append(line) # list0.append(int(line.strip("\n"))) # print("N = "+str(list0[0])) #print(list0) for i in range(1, int(list0[0]) + 1): #print("i="+str(i) + " :" + list0[i]), list2 = s...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s432840008
p00003
Wrong Answer
import sys list0 = [] for line in sys.stdin.readlines(): list0.append(line) for i in range(1, int(list0[0]) + 1): list2 = sorted(list0[i].strip("\n").split(" ")) print("i: "+ str(i)), if int(list2[0]) * int(list2[0]) + int(list2[1]) * int(list2[1]) == int(list2[2]) * int(list2[2]): print("YES"...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s779652630
p00003
Wrong Answer
rep = input() while rep: rep -= 1 [a, b, c] = map(int, raw_input().split()) if a < b: if b < c: a = a ** 2 + b ** 2 b = c ** 2 else: a = a ** 2 + c ** 2 b *= b else: # b <= a if a < c: a = a ** 2 + b ** 2 b = c * c else: a **= 2 b = b **2 + c ** 2 print a, b if a == b: print 'YE...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s193291436
p00003
Wrong Answer
#!/usr/bin/python #-coding:utf-8- import sys data_list = [] for s in sys.stdin: data_list.append( map(int,s.split()) ) print data_list for e in data_list[1:]: e.sort() if e[0]*e[0] + e[1]*e[1] == e[2] * e[2]: print "YES" else: print "NO"
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s582070193
p00003
Wrong Answer
n = input() for i in range(n): s = map(int, raw_input().split()) s.sort() if s[2]^2 == (s[0]^2) + (s[1]^2): print "YES" else: print "NO"
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s414189531
p00003
Wrong Answer
# coding: utf-8 # Here your code ! N = int(input()) for i in range(N): a,b,c = map(int, input().split()) if a*a + b*b == c*c: print('YES') else: print('NO')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s412238656
p00003
Wrong Answer
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 side3**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[...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s543692181
p00003
Wrong Answer
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 side3**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[...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s248474384
p00003
Wrong Answer
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 side3**2 == 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[...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s054319586
p00003
Wrong Answer
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 side3**2 == 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[...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s872791730
p00003
Wrong Answer
def check_right_triangle(side1, side2, side3): pow = 2 if side1**pow == side2**pow + side3**pow: return True if side2**pow == side3**pow + side1**pow: return True if side3**pow == side1**pow + side2**pow: return True return False def check(): for i in range(int(raw_input())): sides = map(int, raw_input(...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s624672287
p00003
Wrong Answer
def check_right_triangle(side1, side2, side3): pow = 2 if side1**pow == side2**pow + side3**pow: return True if side2**pow == side3**pow + side1**pow: return True if side3**pow == side1**pow + side2**pow: return True return False def check(): for i in range(int(raw_input())): sides = map(int, raw_input(...
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s031079018
p00003
Wrong Answer
n = int(raw_input()) for k in range(n): [a,b,c] = map(int,raw_input().split()) a,b,c = sorted([a,b,c]) if a**2 + b**2 == c**2: print "YES" else: print "No"
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s108089505
p00003
Wrong Answer
#!/usr/bin/env python # -*- coding: utf-8 -*- n = int(input()) for i in range(n): x = list(map(int, input().split())) x.sort() if x[0]**2 + x[1]**2 == x[2]**2: print('Yes') else: print('No')
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s624919878
p00003
Wrong Answer
N = int(raw_input()) for i in range(N): a = range(3) a[0],a[1],a[2] = map(int, raw_input().split()) a.sort() if a[0]^2 + a[1]^2 == a[2]^2: print "YES" else: print "NO"
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...
s089290033
p00003
Wrong Answer
try: list = [] while True: for i in range(0, 3): n = int(raw_input()) list.append(n) list.sort() print 'YES' if (list[2]**2 == list[0]**2 + list[1]**2) else 'NO' except: pass
3 4 3 5 4 3 6 8 8 8
YES NO NO
<H1>Is it a Right Triangle?</H1> <p> Write a program which judges wheather given length of three side form a right triangle. Print "<span>YES</span>" if the given sides (integers) form a right triangle, "<span>NO</span>" if not so. </p> <H2>Input</H2> <p> Input consists of several data sets. In the first line, the ...