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):
x,y,_=map(int(input().split()))
print(x*y//2)

x,y,_=map(int,input().split())
print(x*y//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())

ret = ab*bc/2

print(ret)

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

ret = ab*bc//2

print(ret)

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):
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(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):
#116a
a,b,c=map(int,input().split())
print((a+b)//2)

#116a
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):
def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    a, b, c = Input()
    print(b * a * 1/2)

main()

def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    a, b, c = Input()
    print(b * a // 2)

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):
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):
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):
AB,BC,CA = map(int, input().split())
print(0.5 * AB * BC)

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

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):
# -*- coding: utf-8 -*-
c, b, a = map(int, input().split())
print(c * b / 2)

# -*- coding: utf-8 -*-
c, b, a = map(int, input().split())
print(int(c * 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):
# coding: utf-8

# dateime: 2019-02-02 21:12:13
# filename: abc116_a.py
# blog: https://ismdeep.com

s = input().split(" ")
item = [int(i) for i in s]
item.sort()
print(item[0] * item[1] / 2)


s = input().split(" ")
item = [int(i) for i in s]
item.sort()
print(int(item[0] * item[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):
l = list(map(int,input().split()))
print(l[0] * l[1] / 2)

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

l = list(map(int,input().split()))
print(int(l[0] * l[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,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.pop(L[L.index(max(L))])
S = 1
for i in range(2):
  S *= L[i]
  
print(S//2)


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

L.pop(L[L.index(max(L))])
S = 1
for i in range(2):
  S *= L[i]
  
print(S)


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

L.remove(L[L.index(max(L))])
S = 1
for i in range(2):
  S *= L[i]
  
print(S//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):
Copy
a, b, c = map(int,input().split())
print(int(min(a*b/2,b*c/2,c*a/2)))

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

a, b, c = map(int,input().split())
print(int(min(a*b/2,b*c/2,c*a/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 = sorted(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(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(a*b)

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):
lst = list(map(int, input().split()))
lst.sort()
print(lst[0]*lst[1]*1/2)

n, k = map(int, input().split())
a = sorted([tuple(map(int, input().split())) for _ in range(n)], key=lambda x:-x[1])
 
ans = 0
s = set()
q = []
 
for i in range(k):
    ans += a[i][1]
    if a[i][0] in s:
        q.append(a[i][1])
    s.add(a[i][0])
 
ans += len(s)**2
k1 = k
ans1 = ans
 

while k1 < n and q:
    if a[k1][0] not in s:
        ans1 = ans1+a[k1][1]-q.pop()-len(s)**2+(len(s)+1)**2
        ans = max(ans, ans1)
        s.add(a[k1][0])
    k1 += 1
 
print(ans)

lst = list(map(int, input().split()))
lst.sort()
print(int(lst[0]*lst[1]*1/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):
c = int(input())

a = int(input())

print(int(a*c/2))

N = int(input())

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

L = [l_0]

m = None

count = 0

while L != []:
	for l in L:
		m = min(l)
		L.remove(l)
		for i in range(len(l)):
			l[i] = l[i] - m
		count += m
		l = " ".join( list(map(str , l)) )
		l = l.split("0")
		for a in l:
			L.append(list(map(int, (a.split()))))
		while [] in L:
			L.remove([])


print(count)

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

print(int(a*c/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):
a,b,c = map(int,input().splid())

hect = a*b*0.5
print(hect)

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

hect = int(a*b*0.5)
print(hect)

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 = map(int, input().split())
print(int(a*b*//2))

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

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

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

Verdicts: 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):
arr=[j for j in input().split()]
arr=sorted(arr)
print(int(arr[0]*arr[1]/2))

arr=[j for j in input().split()]
arr=sorted(arr)
print(int(arr[0]*arr[1]/2)

a,b,c=map(int,input().split())
arr=[a,b,c]
arr=sorted(arr)
print(int(arr[0]*arr[1]/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):
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: 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):
# coding: utf-8
ab, bc, ca = map(int, input().split())
s = ab * bc / 2
print(s)


# coding: utf-8
ab, bc, ca = map(int, input().split())
s = ab * bc / 2
print(int(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):
|AB|, |BC|, |CB| = map(int, input().split())
print(|AB|*|BC|//2)

AB, BC, CB = map(int, input().split())
print(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):
a,b,c = list(map(int,input().split()))
print(a*b*1/2)

a,b,c = list(map(int,input().split()))
print(a*b*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(AB*BC/2)

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

print(round(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 calc_range_num(h,height,max_height,ans):
    for i in range(len(h)):
        if h[i]>=height and height != 0:
            if i+1<len(h) and h[i]>h[i+1] and h[i+1] <=height:
            
                ans+=1
            elif i==len(h)-1 and h[i]>height:
                ans+=1
    height+=1
    if height>max_height:
        return ans
    else:
        ans = calc_range_num(h,height,max_height,ans)
    return ans
            
N = int(input())
h = list(map(int, input().split()))
max_height=max(h)
ans=0
print(calc_range_num(h,1,max_height,ans))

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):
#coding:utf-8
a, b, c = map(int, input().split())
print((a * b)/2)

#coding:utf-8
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):
from itertools import accumulate
N,K = map(int,input().split())
td = [tuple(map(int,input().split())) for i in range(N)]

td.sort(key=lambda x:-x[1])
td = [(x[0]-1,x[1]) for x in td]
t = [-1]*N
for i in range(N):
    t[td[i][0]] = 0
for i in range(K):
    t[td[:K][i][0]] = 1

t_used = [i for i in range(N) if t[i]==1]
t_not_used = [i for i in range(N) if t[i]==0]

d_top = [0]*N
d_top_candi = [0]*N
d_rest = []
d_candi = []

for i in range(K):
    if t[td[i][0]] == 1:
        if d_top[td[i][0]] == 0:
            d_top[td[i][0]] = td[i][1]
        else:
            d_rest.append(td[i][1])
for i in range(K,N):
    if t[td[i][0]] == 0:
        if d_top_candi[td[i][0]] == 0:
            d_top_candi[td[i][0]] = 1
            d_candi.append(td[i][1])

ans = len(t_used)**2+sum(d_top)
d_rest.sort()
d_candi.sort(key=lambda x:-x)

d_rest_cum = list(accumulate(d_rest))
d_candi_cum = list(accumulate(d_candi))
ans += d_rest_cum[-1]

for k in range(min(len(d_rest),len(d_candi))):
    ans = max(ans + (k+1)*(k+1+2*len(t_used)) + d_candi_cum[k] - d_rest_cum[k],ans)

print(ans)

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

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 = [int(x) for x in input().split]
L.sort()
print(L[1] * L[2] / 2)

L = [int(x) for x in input().split]
L.sort()
print(L[1] * L[1])

L = [int(x) for x in input().split()]
L.sort()
print(L[1] * L[2] // 2)

L = [int(x) for x in input().split]
L.sort()
print(L[1] * L[1] / 2)

L = [int(x) for x in input().split()]
L.sort()
print(L[1] * L[0] // 2)

Verdicts: Runtime Error

Runtime Error

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):
x,y,z=map(int,input().split())

ans=x*y/2

print(ans)

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

ans=x*y/2

print(int(k))

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

ans=x*y/2

print(int(ans))

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)

X = A * B / 2
print(X)

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

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

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

#X = A * B / 2

X = A * B // 2
print(X)

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

X = a * b / 2
print(X)

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

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

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

#X = A * B / 2

X = A * B // 2
print(X)


Verdicts: Runtime Error

Wrong Answer

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)

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):
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=map(int,input().split())
A.sort()
print(A[0]*A[1]//2)



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



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



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



Verdicts: Runtime Error

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):
AB, BC = map( int, input().split() )
print( ( AB * BC ) // 2 )

AB, BC = map( int, input().split() )
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):
from itertools import groupby
from heapq import heapify, heappop

N, K = map(int, input().split())
sushi = [tuple(map(int, input().split())) for _ in range(N)]

srt = sorted(sushi, key=lambda x: x[1], reverse=True)
eat, non_eat = srt[:K], srt[K:]

maxs = []
rems = []
kinds = set()
for k, g in groupby(sorted(eat, key=lambda x: x[0]), key=lambda x: x[0]):
    d = list(list(zip(*g))[1])
    maxs.append(d.pop(0))
    rems.extend(d)
    kinds.add(k)
heapify(rems)
ans = sum(maxs) + sum(rems) + len(kinds)**2

for k, g in groupby(sorted(non_eat, key=lambda x: x[0]), key=lambda x: x[0]):
    if k in kinds:
        continue
    if not rems:
        break
    d = list(list(zip(*g))[1])
    maxs.append(d.pop(0))
    heappop(rems)
    kinds.add(k)
    ans = max(ans, sum(maxs) + sum(rems) + len(kinds)**2)

print(ans)


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):
AB, BC, CA = map(int, input().split())

print((BC*AB)/2)


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

print((BC*AB)/2)

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

print(int((BC*AB)/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)

n = int(input())
h = list(map(int,input().split()))
ans = 0
for _ in range(100):
  streak = False
  for i in range(n):
    if h[i] > 0:
      h[i] -= 1
      if streak:
        pass
      else:
        ans += 1
        streak = True
    else:
      streak = False
print(ans)


a,b,c = map(int,input().split())
print(a*b//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):
l = sorted([int(i) for i in input().split()])
print(l[0]*l[1])

l = sorted([int(i) for i in input().split()])
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):
N=int(input())
h=list(map(int,input().split()))
t=[0]*N
a=0
for i in range(N):
        while t[i]<h[i]:
                for j in range(i,N):
                        if t[j]<h[j]:
                                t[j]+=1
                        else:
                                break
                a+=1
print(a)

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):
# import sys
# 
# a = sys.argv[0]
# b = sys.argv[1]
# c = sys.argv[2]
d = input().split()
a = d[0]
b = d[1]

print(int(a)*int(b))


# import sys
# 
# a = sys.argv[0]
# b = sys.argv[1]
# c = sys.argv[2]
d = input().split()
a = d[0]
b = d[1]

print(int(int(a)*int(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,n,m=map(int,input().split())
print(l*m/2)

l,n,m=map(int,input().split())
print(l*n/2)

l,n,m=map(int,input().split())
print(int(l*n/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 = map(int,input().split())
print((ab*bc)/2)


ab,bc,ca = map(int,input().split())
print('{0:.0f}'.format((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):
ab, bc, ab = [int(i) for i in input().split()]
print(ab * bc / 2)

ab, bc, ac = [int(i) for i in 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):
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):
a,b,c = list(map(int, input().split()))
print(a*b/2)

a,b,c = list(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):
l = list(map(int, input().split()))
len=sorted(l)
print(len[0]*len[1]/2)

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

len=input().split
sorted(len, reverse=True)
print(len[0]*len[1]/2)

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

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

Verdicts: Wrong Answer

Wrong Answer

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):
l = [int(s) for s in input().split(" ")]
l.sort()
print(l[0] * l[1])

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 = 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):
a, b, c = map(int, input().split())
print(a * b / 2)

import sys




input = sys.stdin.readline


def intline():
    return list(map(int, input().split()))



def strline():
    return list(map(str, input().split()))



def intlines(n):
    return [int(input() for _ in range(n))]



def lines(n):
    return [input() for _ in range(n)]
    


class UnionFind:
    def __init__(self, n):
        self.par = [i for i in range(n+1)]
        self.rank = [0] * (n+1)

    
    def find(self, x):
        if self.par[x] == x:
            return x
        else:
            self.par[x] = self.find(self.par[x])
            return self.par[x]

    
    def union(self, x, y):
        x = self.find(x)
        y = self.find(y)
        if self.rank[x] < self.rank[y]:
            self.par[x] = y
        else:
            self.par[y] = x
            if self.rank[x] == self.rank[y]:
                self.rank[x] += 1

    
    def same_check(self, x, y):
        return self.find(x) == self.find(y)



class WeightedUnionFind:
    def __init__(self, n):
        self.par = [i for i in range(n+1)]
        self.rank = [0] * (n+1)
        
        self.weight = [0] * (n+1)

    
    def find(self, x):
        if self.par[x] == x:
            return x
        else:
            y = self.find(self.par[x])
            
            self.weight[x] += self.weight[self.par[x]]
            self.par[x] = y
            return y

    
    def union(self, x, y, w):
        rx = self.find(x)
        ry = self.find(y)
        
        if self.rank[rx] < self.rank[ry]:
            self.par[rx] = ry
            self.weight[rx] = w - self.weight[x] + self.weight[y]
        
        else:
            self.par[ry] = rx
            self.weight[ry] = -w - self.weight[y] + self.weight[x]
            
            if self.rank[rx] == self.rank[ry]:
                self.rank[rx] += 1

    
    def same(self, x, y):
        return self.find(x) == self.find(y)

    
    def diff(self, x, y):
        return self.weight[x] - self.weight[y]







a, b, _ = intline()
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):
l = [int(i) for i in input().split()]

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


l = [int(i) for i in 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):
ab, bc, ca = map(int, input().split());
print((bc*ab)/2)

ab, bc, ca = map(int, input().split());
print(int((bc*ab)/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)

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):
# -*- coding: utf-8 -*-


if __name__ == '__main__':
    
    b, c = map(int, input().split())
    # b, c = map(int, input().split())
    print(b * c / 2.0)


# -*- coding: utf-8 -*-


if __name__ == '__main__':
    
    b, c, d = map(int, input().split())
    # b, c = map(int, input().split())
    print(int(b * c / 2.0))


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):
inline = list(map(int,input().split()))
sortinline = sorted(inline)
ans = sortinline[0] * sortinline[1] * 0.5
print(ans)



inline = list(map(int,input().split()))
sortinline = sorted(inline)
ans = sortinline[0] * sortinline[1] * 0.5
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):
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):
tmp = input().split(" ")
print(int(tmp[0])*int(tmp[1])/2)

tmp = input().split(" ")
print(int(int(tmp[0])*int(tmp[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):
#!/usr/bin/env python3
# -*- coding:utf-8 -*-

if __name__=='__main__':
  li = [int(x) for x in input().split()]
  li.sort()
  print(li[0]*li[1]/2)

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

if __name__=='__main__':
  li = [int(x) for x in input().split()]
  li.sort()
  print(int(li[0]*li[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,c]

x.sort()

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


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

x=[a,b,c]

x.sort()

print(x[0]*x[1]/2]

a,b,c=map(int,input().split())
 
x=[a,b,c]
 
x.sort()
 
print(int(x[0]*x[1]/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):
AB, BC, CD = map(int,input().split())
print(AB*BC)

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):
li = list(map(int, input().split()))

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


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

print(int(li[0] * li[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(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):
ab,c=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):
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):
i = list(map(int, input().split()))
i.sort()
ans = (i[0]*i[1])/2
print(ans)

i = list(map(int, input().split()))
i.sort()
ans = (i[0]*i[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):
AB, BC, CA, = map(int, input().split())

triangle_area = BC * AB / 2

print(triangle_area)


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

triangle_area = BC * AB / 2

print(int(triangle_area))


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):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])

print(a*b/2)

x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
s = int(a*b/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):
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):
a,b,c=map(int,input().split())
s=sum(a,b,c)
t=min(a,b,c)
l=s-t-max(a,b,c)
print(t*l//2)

li=list(map(int,input().split()))
s=sum(li)
t=min(li)
l=s-t-max(li)
print(t*l//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= input().split()
x,y,z=(int(a),int(b),int(c))
print(int(x*y))

a,b,c= input().split()
x,y,z=(int(a),int(b),int(c))
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):
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):
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):
li=int(input().split())
print(li[0]*li[1]*1/2)

a,b,c = map(int,input().split())
print(b * a // 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):
a,b,c=[int(i) for i in input().split()]
prnit(a*b/2)

a,b,c=[int(i) for i in input().split()]
print((a*b)/2)

a,b,c=[int(i) for i in input().split()]
print(a*b/2)

a,b,c=[int(i) for i in input().split()]
print((a*b)//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):
a,b,c = map(int,imput().split())
print(a*b//2)

a,b,c = map(int,imput().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

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)

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):
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):
ソースコード 

Copy
Copy
side = [int(x) for x in input().split()]
side.sort()
 
print(int(side[0]*side[1]/2))

side = [int(x) for x in input().split()]
side.sort()

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

side = [int(x) for x in input().split()]
side.sort()
 
print(int(side[0]*side[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):
import sys

def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def main():
    a, b, c = MI()
    ans = a*b*0.5
    print(ans)

if __name__ == '__main__':
    main()

import sys

def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def main():
    a, b, c = MI()
    ans = int(a*b*0.5)
    print(ans)

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):
c, a, b = map(int, input(),split())
print(int(c * a / 2))


c, a, b = map(int, input().split())
print(int(c * a / 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)

x = list(map(int, input().split()))
print(x[0]*x[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 numpy
import scipy

from collections import defaultdict
from pprint import pprint

a,b,c = [int(x) for x in input().split(" ")]

print (a*b/2)




import numpy
import scipy

from collections import defaultdict
from pprint import pprint

a,b,c = [int(x) for x in 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((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

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=input().split()
ls=[a,b,c]
ls.sort()
print(ls[0]*ls[1])

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
ls=[a,b,c]
ls.sort()
print(ls[0]*ls[1])

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
ls=[a,b,c]
ls.sort()
print(ls[0]*ls[1]/2)

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
ls=[a,b,c]
ls.sort()
print(int(ls[0]*ls[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):
A,B,C = map(int,(input().split(" ")))

print(int(A*B)/2)

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

print(int((A*B)/2))

Verdicts: Wrong Answer

Accepted