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

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


X = list(map(int, input().split()))
X = sort()

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

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

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

s = int(input())

a.append(s)

while True:
    if(a[i] % 2 == 0):
        if(a[i] / 2 != 0):
        	ans = int(a[i] / 2)
        else:
            ans = 0
        if ans in a:
            print(str(i + 2))
            break
       	a.append(ans)
    else:
        anss = int(a[i] * 3 + 1)
        if anss in a:
            print(str(i + 2))
            break
        a.append(anss)

    i += 1

a = []
i = 0

s = int(input())

a.append(s)

while True:
    if(a[i] % 2 == 0):
        if(a[i] / 2 != 0):
        	ans = int(a[i] / 2)
        else:
            ans = 0
        if ans in a:
            print(i + 2)
            break
       	a.append(ans)
    else:
        anss = int(a[i] * 3 + 1)
        if anss in a:
            print(i + 2)
            break
        a.append(anss)

    i += 1

a = []
i = 0

s = int(input())

a.append(s)

while True:
    if(a[i] % 2 == 0):
        ans = int(a[i] / 2)
        if ans in a:
            print(str(i + 2))
            break
       	a.append(ans)
    else:
        anss = int(a[i] * 3 + 1)
        if anss in a:
            print(str(i + 2))
            break
        a.append(anss)

    i += 1

a = []
i = 0

s = int(input())

a.append(s)

while True:
    if(a[i] % 2 == 0):
        ans = int(a[i] / 2)
        if ans in a:
            print(str(i + 2))
            break
       	a.append(ans)
    else:
        anss = int(a[i] * 3 + 1)
        if anss in a:
            print(str(i + 2))
            break
        a.append(anss)

    i += 1
    
print(a)

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

a = AB * BC / 2

print(str(a))

a = []
i = 0

s = int(input())

a.append(s)

while True:
    if(a[i] % 2 == 0):
        ans = int(a[i] / 2)
        if ans in a:
            print(str(i + 2))
            break
       	a.append(ans)
    else:
        anss = int(a[i] * 3 + 1)
        if anss in a:
            print(str(i + 2))
            break
        a.append(anss)

    i += 1

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

a = int(AB * BC / 2)

print(str(a))

Verdicts: Runtime Error

Runtime Error

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):
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

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

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):
s = int(input())
n = 1
tmp = s
if s == 1 or s == 2:
    print(4)
else:
    for i in range(1, 1000000):
        if tmp == 4:
            n = i
            break
        elif tmp % 2 == 0:
            tmp = tmp//2
        else:
            tmp = 3*tmp + 1
    print(n+3)

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

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 = (int(i) for i in input().split()) 
S = (a*b)/2
print(S)

# coding: utf-8
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):
[a,b,c] = [int(j) for j in input().split()]
x = [a,b,c]
d = min(x)
e = a+b+c-d-max(x)
print(d*e/2)


[a,b,c] = [int(j) for j in input().split()]
x = [a,b,c]
d = min(x)
e = a+b+c-d-max(x)
print(int(d*e/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)

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((1/2)*a*b)

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

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

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):
def takeSecond(elem):
    return elem[1]

n,k = map(int,input().split())

sushi = [list(map(int,input().split())) for i in range(n)]

sushi.sort(key=takeSecond,reverse=True)

selected = sushi[:k]
kindset = set([item[0] for item in selected])

startKindNum = len(kindset)

score = startKindNum*startKindNum + sum([item[1] for item in selected])
maxscore = score
front_pointer = k - 1
pointer = k
for i in range(startKindNum+1,min([k+1,n+1])):
    #remove the smallest one that does not decrease kind
    for p in range(front_pointer,-1,-1):
        item = selected[p]
        flag = False
        for idx in range(p):
            if(selected[idx][0]==item[0]):
                score -= item[1]
                selected.remove(item)
                front_pointer = p - 1
                flag = True
                break
        if(flag):
            break

    #add the largest one that add kind
    for j in range(pointer,n):
        if(sushi[j][0] not in kindset):
            selected.append(sushi[j])
            kindset.add(sushi[j][0])
            k += 1
            pointer = j + 1            
            score += 2*startKindNum + 1 + sushi[j][1]
            if(score>maxscore):
                maxscore = score
            startKindNum += 1
            break
print(maxscore)


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

print(a*b//2)

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

print(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):
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):
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):
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)

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

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

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

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

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

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

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

triangle = a * b / 2

print(triangle)

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

triangle = a * b // 2

print(triangle)

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

x = list(map(int, input().split(' ')))
print(int(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):
X,Y,Z=map(int,input().split())
print(min(((X*Y)/2),(X*Z/2),(Y*Z/2)))

X,Y,Z=map(int,input().split())
print(min(((X*Y)//2),(X*Z//2),(Y*Z//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 = [[int(i) for i in input().split()] for i in range(N)]
menseki = a[0]*a[1]/2
print(menseki)

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

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)

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

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

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

lis = list(map(int, input().split()))
print(lis[0]*lis[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=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(int((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):
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):
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(' '))
if a*a + b*b == c*c:
    print(a*b)
elif b*b + c*c == a*a:
    print(b*c)
elif c*c + a*a == b*b:
    print(c*a)
    

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

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

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

a = input().split(' ')

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

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

a = input().split(' ')

print(int(int(a[0]) * int(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):
print([int(i[0])*int(i[1]) for i in[input().split()]][0])

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

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):
def sol(a, b, c):
    #return math.sqrt(a**2+b**2)
    return a*b/2

import math
def sol(a, b, c):
  return math.sqrt(a**2+b**2)

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

from collections import defaultdict
import sys

import math


def sol(a, b, c):
    return int(a * b / 2)


do_submit = True


def input_parse(input_str):
    lines = [x.strip() for x in input_str.split("\n") if x.strip()]
    parsed_lines = [list(map(int, line.split())) for line in lines]
    a, b, c = parsed_lines[0]
    return a, b, c


if not do_submit:
    a, b, c = input_parse("""
    45 28 53
    """)
    print(sol(a, b, c))
else:
    a, b, c = list(map(int, input().split()))
    print(sol(a, b, c))




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

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

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

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

a,_,b,_,c=int(input())
print(a*b//2)

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

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

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


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


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


Verdicts: Runtime Error

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):
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

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,intput().split())
print((a*b)//2)


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

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


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

l.sort()

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

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

l.sort()

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):
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: 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(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):
n = int(input())
h_list = [int(_) for _ in input().split()]
ans = 0 
while sum(h_list) != 0:
    
    
    if h_list.count(0) == 0:
        ans += 1
    else:
        for i in range(0,n):
            
            if i != 0 and h_list[i] == 0 and h_list[i - 1] != 0:
                ans += 1
            elif i == n and h_list[i] != 0:
                ans += 1
    
    for j in range(n):
        if h_list[j] != 0:
            h_list[j] -= 1

print(ans)

n = int(input())
h_list = [int(_) for _ in input().split()]
ans = 0
while sum(h_list) != 0:
    
    
    if h_list.count(0) == 0:
        ans += 1
    else:
        for i in range(1, n):
            
            if h_list[i] == 0 and h_list[i - 1] != 0:
                ans += 1
            elif i == n - 1 and h_list[i] != 0:
                ans += 1
    
    for i in range(n):
        if h_list[i] != 0:
            h_list[i] -= 1

print(ans)

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

print(bc * ab // 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())
res = a * b / 2
print(res)

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

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

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)

arr = []

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

arr.append(A)
arr.append(B)
arr.append(C)
arr = sorted(arr)

print(int(arr[0]*arr[1]*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 = [int(i) for i in input().split()] 

s = a[0] * a[1] / 2

print(s)

a = [int(i) for i in input().split()] 

s = a[0] * a[1] / 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):



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




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

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 as np

N = int(input())
h_list = list(map(int, input().split(" ")))

h_dict = {}
for elm_i, elm in enumerate(h_list):
    try:
        h_dict[elm].append(elm_i)
    except:
        h_dict[elm] = [elm_i]

h_list = np.asarray(h_list)


def calc(group, past_out, group_start):
    out = 0
    while True:
        #print("group", group)
        min_val = min(group)
        group -= min_val
        out += min_val
        #zero_list = np.where(group == 0)[0]
        #print("outs", past_out, out, group)
        
        zero_list = h_dict[past_out + out]
        
        zero_list = [elm_i - group_start for elm_i in zero_list if elm_i >= group_start and elm_i < group_start + len(group)]
        

        cond1 = group.shape[0] - 1 in zero_list
        cond2 = 0 in zero_list

        if group.shape[0] == 1:
            
            break
        else:
            if cond1: 
                zero_list = zero_list[:-1]
                group = group[:-1]
            if cond2:
                group_start += 1
                zero_list = zero_list[1:]
                group = group[1:]

            if not cond1 and not cond2:
                break

            if group.shape[0] == 0:
                break


    if group.shape[0] <= 1:
        pass
    else:
        start_i = -1
        past_out = out
        for end_i in zero_list:
            child_group = group[start_i+1: end_i]
            #print("child_group", child_group)
            out += calc(child_group, past_out, group_start+start_i+1)
            start_i = end_i

        child_group = group[start_i+1:]
        if child_group.shape[0] >= 1:
            #print("child_group", child_group)
            out += calc(child_group, past_out, group_start+start_i+1)

    return out

out = calc(h_list, 0, 0)
print(out)

inputs=  sorted(list(map(int, input().split(" "))))

out = inputs[0] * inputs[1] // 2

print(out)

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()))

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

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

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

print(a * b * c / max(a, b, c) / 2)


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

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

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

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

a,b=int(input())
print(a*b/2)

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

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(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)

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

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

print(a*b/2)

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

S=c*a/2

print(S)

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

print(a*b/2)

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

print(c*a/2)

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

print(int(a*b/2))

Verdicts: Wrong Answer

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

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



l = sorted(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):
if __name__ == '__main__':
    import sys
    input = sys.stdin.readline
    import collections
    n, k = map(int, input().split())
    td = [list(map(int, input().split())) for _ in range(n)]
    td.sort(key=lambda x: x[1], reverse=True)
    ans_list = [0]
    reverse_td = list(zip(*td))
    c = collections.Counter(reverse_td[0][:k])
    kind = len(c)
    ans = sum(reverse_td[1][:k])+kind**2
    check = k-1
    flag=False
    for i in range(k,n):
        t = td[i][0]
        d = td[i][1]
        if t in c:
            pass
        else:
            c[t]=1
            while True:
                new_t = td[check][0]
                if c[new_t]==1:
                    check -=1
                    if check == -1:
                        flag =True
                        break
                else:
                    c[new_t]-=1
                    ans_list.append(2*kind+1+d-td[check][1])
                    kind+=1
            if flag:
                break
    print(ans+max(ans_list))


if __name__ == '__main__':
    n, w, k = map(int, input().split())
    print(n*w/2)


if __name__ == '__main__':
    n, w, k = map(int, input().split())
    print(int(n*w/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):
length = list(map(int, input().split()))
length.remove(max(length))
menseki = 0.5
for l in length:
  menseki = l
print(menseki)


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 * (1/2))

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

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

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

print(ab*bc/2)

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

print(ab*bc/2)

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

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

print(x*y*0.5)


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


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


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 = int(input())
hn = list(map(int, input().split()[:n]))

count = 0
prev = 0

for h in hn:
    count += max(0, h-prev)
    prev = h

print(count)


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

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

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):
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):
N,K = list(map(int,input().split()))
TDlist = []

for x in range(0,N):
    TDlist.append(list(map(int,input().split())))

TDlist.reverse(key = lambda x: x[1])
kinds = []
seconds = []
answer = 0

for x in TDlist[:K]:
    if not x[0] in kinds:
        kinds.append(x[0])
    else:
        seconds.append(x[1])
    answer += x[1]

answer += len(kinds)**2
score = answer
max_score = answer

for x in TDlist[K:]:
    if seconds == []:
        break
    if x[0] in kinds:
        continue
    kinds.append(x[0])
    y = seconds.pop()
    score += (x[1] - y) + (len(kinds)*2 -1)
    max_score = max(score,answer)
    

answer = max(answer,max_score)

print(answer)

S = list(map(int,input().split()))
AB = S[0]
BC = S[1]
CA = S[2]

answer = AB * BC // 2

print(answer)

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

list=list(map(int,input().split()))
print(int(list[0]*list[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):
# coding: utf-8
# Your code here!

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())
S = a*b/2
print(S)

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

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

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


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


a,b,c=sorted(map(int,input().split()))
print((b*a)//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):
inp = int(input())
li = [0]
i = 0
while True:
  te = inp/2
  if te.is_integer():
    te = int(te)
    pass
  else:
    te = int(inp * 3 + 1)
  if te in li:
    print(int(len(li)+1))
    break
  else:
    li.append(te)
    inp = te

inp = int(input())
li = [0]
for i in li:
  te = inp/2
  if te.is_integer():
    pass
  else:
    te = inp * 3 + 1
  if te in li:
    print(int(len(li)+1))
    break
  li.append(te)
  inp = te

inp = int(input())
li = [inp]
i = 0
while True:
  if inp % 2 == 0:
    te = inp/2
    te = int(te)
    pass
  else:
    te = int(inp * 3 + 1)
  if te in li:
    print(int(len(li)+1))
    break
  else:
    li.append(te)
    inp = te

inp = int(input())
li = [0]
i = 0
while i == 0:
  te = inp/2
  if te.is_integer():
    pass
  else:
    te = inp * 3 + 1
  if te in li:
    print(int(len(li)+1))
    i = 1
  li.append(te)
  inp = te

inp = [int(i) for i in input().split()]
ru = inp[0] * inp[1] / 2
print(ru)

inp = [int(i) for i in input().split()]
ru = inp[0] * inp[1] / 2
print(int(ru))

Verdicts: Runtime Error

Runtime Error

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

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

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


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


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

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

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


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


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted