TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c= (int,input().split())
print(a*b/2)

a,b,c= map(int,input().split())
print(a*b/2)

a,b,c= map(int,input().split())
print(a*b//2)



Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a = input("a:")
b = input("b:")
c = input("c:")

print(int(int(a)*int(b)/2))


a = input()
b = input()
c = input()

print(int(a)*int(b)/2)


a = input("a:")
b = input("b:")
c = input("c:")

print(int(int(a)*int(b)/2))


AB,BC,CA = map(int,input().split())
print(AB*BC/2)


AB,BC, CA = map(int,input().split())
print(AB*BC/2)


AB,BC,CA = map(int,input().split())
print(int(AB*BC/2))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print(a*b/2)


a,b,c = map(int,input(.split()))
print(a*B/2)


a,b,c = map(int,input(.split()))
print(a*b/2)


a,b,c = map(int,input(.split()))
print(a/(b*2))


a,b,c = map(int,input().split())
print(a*b//2)


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
[print(a*b/2)for a,b,_ in[[*map(int,input().split())]]]

[print(a*b/2)for a,b,_ in[set(map(int,input().split()))]]

[print(a*b//2)for a,b,_ in[list(map(int,input().split()))]]

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
inp = input().split(" ")
a = int(inp[0])
b = int(inp[1])
print(a*b/2)

inp = input().split(" ")
a = int(inp[0])
b = int(inp[1])
print(int(a*b/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
x,y,z=map(int,input().split())
S=x*y/2

import math
x,y,z=map(int,input().split())
S=round(x*y/2)
print(S)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b , c = map(int(input().split()))
ans = a * b // 2
print(ans)

a, b, c = map(int, input().split())
ans = a * b // 2
print(ans)


Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
n=int(input())
h=list(map(int,input().split()))
ans=0

def f(li):
  global ans
  
  
  if li==[]:
    del li
    return
  
  
  min_num=min(li)
  if min(li)>0:
    count+=min(li)
    li=list(map(lambda x: x-min(li), li))
  li=[li[:li.index(0)],li[li.index(0)+1:]]
  f(li[0])
  f(li[1])

f(h)
print(count)

S =list(map(int, input().split()))
print(int(S[0]*S[1]/2))

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB,BC,CA = map(int,input().split())
print(AB*BC*1/2)

AB,BC,CA = map(int,input().split())
print(int(AB*BC*1/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
X, Y, Z = map(int, input().split())
print(int(X) * int(Y) /2)

X, Y, Z = map(int, input().split())
print(int(int(X) * int(Y) /2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
x = input()
y = x.split(" ")
triangle = [int(i) for i in y]
max_index = -1
max = 0
for line in range(len(triangle)):
    if(triangle[line] > max):
        max = triangle[line]
        max_index = line
del triangle[max_index]

print(triangle[0] * triangle[1] / 2)


x = input()
y = x.split(" ")
triangle = [int(i) for i in y]
max_index = -1
max = 0
for line in range(len(triangle)):
    if(triangle[line] > max):
        max = triangle[line]
        max_index = line
del triangle[max_index]

print(int(triangle[0] * triangle[1] / 2))


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
import sys
import math
import itertools

ab,bc,ca=list(map(int,input().split()))

print((ab*bc)/2)

import sys
import math
import itertools

ab,bc,ca=list(map(int,input().split()))

print(int((ab*bc)/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, _ = map(int, input().split())
print(a * b / 2)

a, b, _ = map(int, input().split())
print(int(a * b / 2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print(int(a*b/2)

a,b,c = map(int,input().split())
print(a*b/2)

a,b,c = map(int,input().split())
print(a*b//2)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int, input().split())
print(a*b/2)

n = int(input())
h = [int(i) for i in input().split()]
import numpy as np

h = np.array(h)
zero = np.array([int(0) for i in range(len(h))])

def calc(h, zero, minus):
    for k in range(len(h)):
        if minus[k] != 0:
            if k == len(h) - 1:
                zero[k] = zero[k] + 1
                return
            for w in range(k+1, len(h)):
                if minus[w] == 0:
                    zero[k:w] = zero[k:w] + 1
                    return
                elif w == len(h) - 1:
                    zero[k::] = zero[k::] + 1
                    return

def main(h, zero):
    i = 0
    minus = h - zero
    while np.sum(minus) != 0:
        calc(h ,zero, minus)
        i += 1
        minus = h - zero
    print(i)

main(h, zero)

a, b, c = map(int, input().split())

print(a * b / 2)

a, b, c = map(int, input().split())
print(int(a*b/2))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())
print(a*b/2)

a,b,c = map(int, input().split())
print(a*b//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
ab,bc,ca = map(int,input().split())
print(ab*bc/2)


ab,bc,ca = map(int,input().split())
square = int(ab*bc/2)
print(square)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = list(map(int, input().split()))
print(a * b / 2)

a, b, c = list(map(int, input().split()))
print(int(a * b / 2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
line = input()
sides = [int(n) for n in line.split()]
sides.sort()
area = round(sides[0] * sides[1])/2
print(area)

num = [int(n) for n in line.split()]
sides = [num_a, num_b, num_c]
sides.sort()
area = round(sides[0] * sides[1])/2
print(area)

triangulo = input()
lados = triangulo.split()
AB = lados[0]
BC = lados[1]
area = (int(AB) * int(BC))/2
print("%.0f" % area)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input.split(" "))
print((a*b)/2)

a,b,c = map(int,input.split(" "))
print((a*b)/c)

a,b,c = map(int,input().split(" "))
print(int((a*b)/2))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
k = input().split()
a = k[0]
b = k[1]
c = k[2]
Sum = 0
h = max(k)

Buf = 1
del k[k.index(h)]
print(k)
for i in k:
    Buf = Buf * int(i)
r = Buf/2
print(int(r))

k = input().split()
a = k[0]
b = k[1]
c = k[2]
Sum = 0
h = max(k)

Buf = 1
del k[k.index[h]]

for i in k:
    buf = Buf*i

print(int(buf/2))

k = input().split()
a = k[0]
b = k[1]
c = k[2]
Sum = 0
h = max(k)

Buf = 1
del k[k.index(h)]
for i in k:
    buf = Buf * int(i)
r = buf/2
print(int(r))

k = input().split()
a = k[0]
b = k[1]
c = k[2]
for i in range(len(k)):
    k[i] = int(k[i])
h = max(k)

Buf = 1
del k[k.index(h)]

for i in k:
    Buf = Buf * int(i)
r = Buf/2
print(int(r))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b=map(int,input().split())
print(a*b//2)


a,b,c=map(int,input().split())
print(a*b//2)


Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())
print(a*b/2) 

a,b,c=map(int,input().split())
print(a*b//2) 

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
ab,bc,ca = map(int,input().split(' '))

print((ab * bc /2))



ab,bc,ca = map(int,input().split(' '))

print(int(ab * bc /2))



Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
from operator import itemgetter

n, k = map(int, input().split())
td = [tuple(int(x) for x in input().split()) for _ in range(n)]

a = sorted(td, key=itemgetter(1), reverse=True)

ans = [0]
s = set()
t = []
for i in range(k):
    ans[0] += a[i][1]
    if a[i][0] not in s:
        s.add(a[i][0])
    else:
        t.append(a[i][1])

p = len(s)
q = len(t) - 1

if q < 0:
    print(ans[0] + k * k)
    exit()

v = []
for i in range(k, n):
    if a[i][0] not in s:
        s.add(a[i][0])
        v.append(a[i][1])

ans[0] += p * p
d = 0

for x in v:
    ans.append(ans[d] + x - t[q] + (p + 1) * (p + 1) - p * p)
    p += 1
    d += 1
    q -= 1
    if q < 0:
        break

print(max(ans))

a = list(map(int, input().split()))

a = sorted(a)

print(a[0] * a[1] // 2)

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
As = list(sorted(map(int, input().split())))
print((As[0] + As[1] // 2))


As = list(sorted(map(int, input().split())))
print((As[0] * As[1] // 2))


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
inp = list(sorted([int(x) for x in input().split]))
print(inp[0]*inp[1]/2)

inp = list(sorted([int(x) for x in input().split()]))
print(inp[0]*inp[1]/2)


inp = list(sorted([int(x) for x in input().split()]))
print((inp[0]*inp[1])//2)


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int,input().split()))
l.remove(max(l))
print(l[0]*l[1])


l=list(map(int,input().split()))
l.remove(max(l))
print(l[0]*l[1]/2)


l=map(int,input().split())
l.remove(max(l))
print(l[0]*l[1])


l=list(map(int,input().split()))
l.remove(max(l))
print(l[0]*l[1]//2)


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int, input().split())
print(a*b/2)

a, b, c = map(int, input().split())
print(a*b//2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
s = list(map(int, input().split()))
print(s[0]*s[1] /2)
         

s = list(map(int, input().split()))
s.sort()
print(s[0]*s[1]/2)
         

s = list(map(int, input().split()))
s.sort()
print(int(s[0]*s[1]/2))
         

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB,BC,CA=[int(s) for s in input().split()]
print(AB*BC/2)

AB,BC,CA=[int(s) for s in input().split()]
print(int(AB*BC/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int,input().split()))
l.sort()
print(l[0]*l[1]/2)

l=list(map(int,input().split()))
l.sort()
print(l[0]*l[1]//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split(' '))
x = a*b/2
print(x)

a,b,c = map(int,input().split())
print(a*b/2)

a,b,c = map(int,input().split(' '))
x = a*b//2
print(x)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
E = list(map(int, input().split()))

print(E[0]*E[1])

E = list(map(int, input().split()))

print(E[0]*E[1]/2)

E = list(map(int, input().split()))

print(int(E[0]*E[1]/2))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, _ = map(int, input().split())
print("この三角形の面積は{}です".format(a*b//2))

a, b, _ = map(int, input().split())
print("この三角形の面積は{}です。".format(a*b//2))

a, b, _ = map(int, input().split())
print(a*b//2)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
n = sorted(list(map(int,input().split())))
print(n[0]*n[1]/2)

n = sorted(list(map(int,input().split())))
print(n[0]*n[1]/2)

AB, BC, CA = map(int,input().split())
print(int(AB*BC/2))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
line = input()
a, b, c = [int(x) for x in line.split()]
print((a * b) / 2)


line = input()
num = [int(n) for n in line.split()]
sides = [num_a, num_b, num_c]
sides.sort()
area = round(sides[0] * sides[1]/2)
print(area)

a, b, c = map(int, input().split())
area = int((b * a)/2)
print(area)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int, input().split())
print(a*b/2)

AB,BC,CA = map(int,input().split())

print(AB*BC//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby
    #from itertools import product
    from bisect import bisect_left,bisect_right
    import heapq
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

    a,b,c = map(int, input().split())
    print(a*b/2)

if __name__ == '__main__':
    main()

def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby
    #from itertools import product
    from bisect import bisect_left,bisect_right
    import heapq
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

    a,b,c = map(int, input().split())
    print(int(a*b/2))

if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int, input().split())

print(a * b / 2)

a, b, c = map(int, input().split())

print(int(a * b / 2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
c,a,b = map(int,input().split())

print(c*a/2)


c,a,b = map(int,inpput().split())

print(c*a/2)

c,a,b = map(int,input().split())

print(int((c*a)/2))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print((a*b)/2)

a,b,c = map(int,input().split())
print((a*b)//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())
print((a*b)/2)

a,b,c=map(int,input().split())
print(a*b/2)

a,b,c=map(int,input().split())
print(int(a*b/2))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
#!/usr/bin/python

def main():
    a, b, c = [int(x) for x in input().split()]
    print(a * b / 2)

if __name__ == "__main__":
    main()

#!/usr/bin/python

def main():
    a, b, c = [int(x) for x in input().split()]
    print(a * b // 2)

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
x,y,z = map(int,input().split())
print(x * y / 2)

x,y,z = map(int,input().split())
print(int(x * y / 2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
c, a, b = map(int, input().split())

print((a*c)/2)

c, a, b = map(int, input().split())
print(int((a*c)/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a = [0 for i in range(3 * 1000000 + 1)]

s = int(input().rstrip())

a[s] = 1

for i in range(2, 1000000+1):
    if s % 2 == 0:
        s = int(s / 2)
    else:
        s = int(3 * s + 1)
    #print(s)
    
    if a[s] == 1:
        break
    a[s] = 1
        
print(i)

AB,BC,CA = map(int, input().split())

print(int(AB * BC / 2))

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l = list(map(int,input().split()))

print(l[0]*l[1]/2)

l = list(map(int,input().split()))

print(int(l[0]*l[1]/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
N,M = map(int,input().split())

print(int(A*B/2))


a,b,c=list(map(int,input().split()))
print(a*b//2)


Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int, input().split())
print(a * b / 2)


a, b, c = map(int, input().split())
print(int(a * b / 2))


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB, BC, CA = [int(abc) for abc in input().split()]
print(AB*BC/2)

AB, BC, CA = [int(abc) for abc in input().split()]
print(int(AB*BC/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int,input().split()))
l.sort()
print(int(0.5)*l[0]*l[1])

    l=list(map(int,input().split()))
    l.sort()
    print(int(0.5*l[0]*l[1]))

l=list(map(int,input().split()))
l.sort()
print(int(0.5*l[0]*l[1]))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print(rount(0.5*a*b))

a,b,c = map(int,input().split())
print(0.5*a*b)

a,b,c = map(int,input().split())
print(int(0.5*a*b))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())
print(a*b/2)

a,b,c=map(int,input().split())
print((a*b)//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int, input().split())
s = (a + b + c) / 2
print((s * (s - a) * (s - b) * (s - c)) ** 0.5)

a, b, c = map(int, input().split())
s = (a + b + c) / 2
print(int((s * (s - a) * (s - b) * (s - c)) ** 0.5))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int, input().split()))
l.sort()
print(l[0]*l[1]/2)

l=list(map(int, input().split()))
l.sort()
print(int(l[0]*l[1]/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB, BC, CA = map(int, input().split())

print(int(AB + BC + CA) / 2))

AB, BC, CA = map(int, input().split())

print((AB + BC + CA) / 2)

import math

AB, BC, CA = map(int, input().split())
s = (AB + BC + CA) / 2

print(int(math.sqrt(s* (s - AB) * (s - BC) * (s - CA))))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a = list(map(int,input().split())
a = sorted(a)
print(a[0]*a[1]/2)

a = list(map(int,input().split()))
a = sorted(a)
print(int(a[0]*a[1]/2))

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB, BC, CA = map(int, input().split())

print(AB * BC / 2)


AB, BC, CA = map(int, input().split())

print(AB * BC // 2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int,input().split()))
print(l[0]*l[1]/2)

l=list(map(int,input().split()))
l.sort()
print(l[0]*l[1]/2)

a,b,c=map(int,input().split())
print(a*b/2)

a,b,c=map(int,input().split())
print(int(a*b/2))

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
import math
V = [int(n) for n in input().split()]
s = sum(V) / 2
A = math.sqrt(s*(s-V[0])*(s-V[1])*(s-V[2]))
print(A)

a, b, c = map(int, input().split())
print(a * b // 2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB, BC, CA = map(int, input().split())
print(AB * BC /2)

AB, BC, CA = map(int, input().split())
S = int(AB * BC /2)
print(S)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
A,B,_ = list(map(int,input().split(" ")))
print(A*B/2)

A,B,_ = list(map(int,input().split(" ")))
print(int(A*B/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
A,B,C = map(int, input().split())
print(A*B / 2)

A,B,C = map(int, input().split())
print(int(A*B / 2))


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print(a*b/2)

x,y,z = map(int,input().split())
print(int(x*y*0.5))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=(map(int,input().split()))
print(a*b/2)


a,b,c=(map(int,input().split()))
print(a*b//2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
h, w, n = map(int, input().split())

print(h*w/2)

h, w, n = map(int, input().split())

print(int(h*w/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
import math
a,b,c=map(int, input().split())
print(int(math.sqrt(a**2+b**2)))

a,b,c=map(int, input().split())
print(a*b//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
A,B,C = map(int,input().split())

if max(A,B,C)==A:
  print(B*C/2)
elif max(A,B,C)==B:
  print(A*C/2)
elif max(A,B,C)==C:
  print(A*B/2)
  
  
  

A,B,C = map(int,input().split())

if max(A,B,C)==A:
  print(int(B*C/2))
elif max(A,B,C)==B:
  print(int(A*C/2))
elif max(A,B,C)==C:
  print(int(A*B/2))
  
  
  

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,_=map(int,input().split())
print(a*b/2)

a,b,_=map(int,input().split())
print(a*b//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
ab, bc, _ = map(int, input().split())
print(ab * bc / 2)


ab, bc, _ = map(int, input().split())
print(ab * bc // 2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
x, y, z = map(int, input().split())
print(x*y/2)

x, y, z = map(int, input().split())
print(x*y//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
line = input()
AB = line.split()[0]
BC = line.split()[1]

range = int(AB)*int(BC)/2
  
print (range)



line = input()
AB = line.split()[0]
BC = line.split()[1]

range = int(AB)*int(BC)/2
  
print (int(range))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input())
print(a*b/2)

a,b,c=map(int,input().split())
print(a*b/2)

a,b,c=map(int,input().split())
print(a*b//2)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB,BC,CA = map(int,input().split())
print(AB*BC/2)

from operator import itemgetter

def inpl(): return [int(i) for i in input().split()]

N,K = inpl()
d = {}
ans = 0
n0 = []
n1 = []

for i in range(N):
    ti,di = inpl()
    if (ti in d.keys()):
        d[ti].append(di)
    else:
        d[ti] = [di]

for i in d.keys():
    sortedd = sorted(d[i],reverse = True)
    n1.append(sortedd[0])
    n0 += sortedd[1:]

n0.sort(reverse = True)
n1.sort(reverse = True)

for i in range(K+1):
    if(K-i <= len(n0) and 0<=K-i):
        total = sum(n1[:i])+sum(n0[:K-i])+(i)**2
        if(ans<total):
            ans = total

print(ans)


AB,BC,CA = map(int,input().split())
print(int(AB*BC/2))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b=map(int,input().split())
print(a*b/2)

a,b,c=map(int,input().split())
print(a*b/2)


a,b,c=map(int,input().split())
print(int(a*b/2.0))


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
A,B,C = sported(list(map(int,input().split())))
print(int(A*B*0.5))

sides = list(map(int,input().split()))
s1,s2 = sorted(sides)[:2]
print(int(s1*s2/2))

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
from statistics import mean, median,variance,stdev
import sys
import math
import fractions

def j(q):
    if q==1: print("YES")
    else:print("NO")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())



x,y,z = (int(i) for i in input().split())    








print(x*y/2)

from statistics import mean, median,variance,stdev
import sys
import math
import fractions

def j(q):
    if q==1: print("YES")
    else:print("NO")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())



x,y,z = (int(i) for i in input().split())    








print(x*y//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l = sorted(map,input().split())
print((l[0]*l[1])//2)

l = sorted(map(int,input().split()))
print((l[0]*l[1])//2)

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
n=int(input())
h=list(map(int, input().split()))
sum=0
for i in range(max(h)):
    if 0 not in h:
        h=[i-1 if i>0 else 0 for i in h]
        sum+=1
        # print(h,1)
    else:
        count0=[i for i, j in enumerate(h) if j==0]
        a=count0.copy() 
        b=count0.copy()
        a.pop(0)
        b.pop(-1)
        c=[x-y for(x,y) in zip(a,b)]
        sum = sum + len(c)-c.count(1)
        # print(count0)
        if count0[0]>0 and count0[-1]<n-1:
            sum +=2
            # print(1)
        elif count0[0]>0 or count0[-1]<n-1:
            sum +=1
            # print(2)
        else:
            sum +=0
        h=[i-1 if i>0 else 0 for i in h]
        # print(h,2)
print(sum)                
                

a,b,c=sorted(map(int, input().split()))
print(a*b//2)


Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
#A,B,C = map(int,input().split())
AB,BC,CA = map(int,input().split())
print(AB,BC,CA)
print((AB*BC)//2)



#A,B,C = map(int,input().split())
AB,BC,CA = map(int,input().split())
#print(AB,BC,CA)
print((AB*BC)//2)



Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b , c = map(int, input().split())
print(a * b / 2)

a, b , c = map(int, input().split())
print(int(a * b / 2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
l=list(map(int, input().split()))
l.sort()
print(l[0]*l[1]/2)

l=list(map(int, input().split()))
l.sort()
print(l[0]*l[1]//2)


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int, input().split())
print(a*b/2)


a, b, c = map(int, input().split())
print(int(a*b/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())

print(a*b/2)

a,b,c=map(int,input().split())

print(int(a*b/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a = sorted(list(int(i) for i in input().split()))
print(a[0]*a[1]/2)

a = sorted(list(int(i) for i in input().split()))
print(a[0]*a[1]//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
data = input().split()
ans = (int(data[0]) * int(data[1]))* (1/2)
print(ans)


data = input().split()
ans = (int(data[0]) * int(data[1]))* (1/2)
print(int(ans))


Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
b=list(map(str,input()))
while "|" in b :
    b.remove("|")
while " " in b :
    b.remove(" ")
c=list(map(int, b))
print(c)

#a_new =
d=sorted(c)
print(int(d[0]*d[1]/2))

c=list(map(int,input().split()))
print(c[0]*c[1]//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
ab, bc, ca = map(int, input().split())
area = ab * bc / 2
print(area)

ab, bc, ca = map(int, raw_input().split())
area = ab * bc / 2
print(area)

ab, bc, ca = map(int, input().split())
area = int(ab * bc / 2)
print(area)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c = map(int,input().split())
print(a*b/2)

a,b,c = map(int,input().split())
print(int((a*b)/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a, b, c = map(int,input().split())
print((a*b)/2)

a, b, c = map(int,input().split())
print(int((a*b)/2))

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
p,q = map(int,input().split())
print(p * q / 2)

p,q,r=map(int,input().split())
print(p*q//2)

Verdicts: Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB,BC,CA = map(int, input().split("|  |"))
print(AB*BC/2)


length = list(map(int, input().split()))
print(length[0]*length[1]/2)

AB,BC,CA = map(int, input().split())
print(AB*BC/2)

length = list(map(int, input().split()))
print(int(length[0]*length[1]/2))


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
AB, BC, CA = int(input())

print((AB * BC) // 2)


ab, bc, ca = int(input())

print((ab * bc) // 2)

AB, BC, CA = map(int, input().split())

print((AB * BC) // 2)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
ab, bc, ca = map(int, input().split())
print(ab*bc/2)

ab, bc, ca = map(int, input().split())
print(ab*bc//2)

Verdicts: Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
a,b,c=map(int,input().split())
print(a*b)

a,b,c=map(int,input().split())
print(a*b/2)

a,b,c = map(int,input().split())
print((a*b)//2)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There is a right triangle ABC with ∠ABC=90°.  Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC.  It is guaranteed that the area of the triangle ABC is an integer.

Submission attempts (in order):
A,B,C=map(int,input().split())
print(A*B/2)

A,B,C=map(int,input().split())
print(int(A*B/2))

Verdicts: Wrong Answer

Accepted