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

Submission attempts (in order):
A,B,C = map(int,input().split())
array = [A,B,C]
array.sort()
print(array[0]*array[1])

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

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

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

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

print(a*b//2)


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

print(a*b//2)


Verdicts: Runtime Error

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

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

from heapq import heappop, heappush, heapify
n, k = map(int, input().split())
lst = [list(map(int, input().split())) for i in range(n)]
lst = sorted(lst, reverse=True, key=lambda x:x[1])
q = []
v = set()
cnt = 0
for t, d in lst[:k]:
    cnt += d
    if t in v:
        heappush(q, d)
    else:
        v.add(t)
cnt += len(v)**2
ans = cnt
for t, d in lst[k:]:
    if t not in v and len(q)!=0:
        x = heappop(q)
        cnt += d + 2*len(v) + 1 - x
        ans = max(ans, cnt)
print(ans)

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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

a,b,c=(int(x) for x in input().split())
print(int((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(B*C/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(input().split())
print(a*b/2)

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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

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

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


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

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

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(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, 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=int(input())
b=int(input())
c=int(input())

print(a*b/2)


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

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

s=int(input())
def is_even(num):
    return num % 2 == 0
list=[]
list.append(s)

def calc(s):
	if is_even(int(s)):
		return (int((s)/2))
		list.append(s)
	else:
		return (int((s)*3+1))
		list.append(s)
	s=int(calc(s))
check=[1,2,4]
for (s) in (check):
	if not (s) in (check):
		calc(s)
else:
	print (int(s)+3)


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

Runtime Error

Wrong Answer

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

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

print(a*b/2)

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

print(a*b//2)


Verdicts: Wrong Answer

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

Submission attempts (in order):
A,B=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):
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):
L=sorted(list(map(int,input().split())))
print(L[0]*L[1]/2)

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

c.remove(max(c))

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

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

c.remove(max(c))

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

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

Verdicts: Wrong Answer

Wrong Answer

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

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


c,a,b = map(int, input().split())
print(int(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,b,c=input().split()
arr=sorted([a,b,c])
print(arr[0]*arr[1])
return arr[0]*arr[1]



N,K=map(int,input().split())
td=[[int(a) for a in input().split()]for i in range(N)]

td=sorted(td,key=lambda x:-x[1])

ans=0
eat=[]
noteat=[]
for t,d in td[:K]:
  ans+=d
  if t not in eat:
    eat.append(t)
  else:
    noteat.append(d)
temp_result=ans+sum(eat)**2
max_result=temp_result

for t,d in td[K:]:
  if not noteat:
    break
  if t not in eat:
    temp_result+=2*len(eat)+1
    temp_result+=d-noteat.pop()
    eat.add(t)
    max_result=max(max_result,temp_result)
print(max_result)
 


N,K=map(int,input().split())
td=[[int(a) for a in input().split()]for i in range(N)]

td=sorted(td,key=lambda x:-x[1])

ans=0
eat=[]
noteat=[]
for t,d in td[:K]:
  ans+=d
  if t not in eat:
    eat.append(t)
  else:
    noteat.append(d)
temp_result=ans+len(eat)**2
max_result=temp_result

for t,d in td[K:]:
  if not noteat:
    break
  if t not in eat:
    temp_result+=2*len(eat)+1
    temp_result+=d-noteat.pop()
    eat.add(t)
    max_result=max(max_result,temp_result)
print(max_result)
 



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




a,b,c=map(int,input().split())
arr=sorted([a,b,c])
print(arr[0]*arr[1])




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




Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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

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

print(int(AB*BC*0.5))

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

print(int(AB*BC*0.5))

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

if a>b and a>c:
  print(1/2 * b * c)
 
if b>a and b>c:
  print(1/2 * a * c)
  
if c>b and c>a:
  print(1/2 * b * a)

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

if a>b and a>c:
  print(int((1/2 * b * c)))
  
if b>a and b>c:
  print(int((1/2 * a * c)))
  
else:
  print(int((1/2 * a *b))

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

if a>b and a>c:
  print(1/2 * b * c)
  
if b>a and b>c:
  print(1/2 * a * c)
  
else:
  print(1/2 * a *b)

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

if a>b and a>c:
  print(1/2 * b * c)
  
if b>a and b>c:
  print(1/2 * a * c)
  
if c>b and c>a:
  print(1/2 * b * a)

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

if a>b and a>c:
  print(int((1/2 * b * c)))
  
if b>a and b>c:
  print(int((1/2 * a * c)))
  
else:
  print(int((1/2 * a *b)))

Verdicts: 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())
d=min(a*b/2,a*c/2,b*c/2)
print(d)

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

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

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
a = [int(i) for i in input().split()]
print(a[0]*a[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())
area = int(bc*ca/2)
print(area)

ab, bc, ca = map(int, input().split())
area = int(bc*ab/2)
print(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):
a,b,c = map(int,input().split())
print(a*b*c/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):
x, y ,z = map(int, input().split())
print(int(0.5*x**y))

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


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)


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

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

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

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

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

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

s = input().split() 
print(s[0] * s[1] / 2)

i = list(map(int, input().split())) 
print(int((i[0] * i[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 = [int(data) for data in input().split()]
print(AB*BC / 2)

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
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):
import sys
input = sys.stdin.readline
import numpy as np
L = [int(x) for x in input().rstrip().split()]
L = sorted(L)
print((1/2) * L[0] * L[1])


import sys
input = sys.stdin.readline
import numpy as np
L = [int(x) for x in input().rstrip().split()]
L = sorted(L)
print(int((1/2) * L[0] * L[1]))


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

AREA = ((x*Y)/2)


print(AREA)

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

AREA = ((x*y)/2)


print(AREA)

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

AREA = x*y

AREA2 =(AREA//2) 


print(AREA2)


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

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

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

c, a, b = map(int, input().split())
print(int(c*a*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):
def main():
    with open('sample.txt') as f:
        ab, bc, ca = [int(x) for x in f.readline().rstrip().split()]
        print(ab * bc // 2)


if __name__ == "__main__":
    main()


from sys import stdin


def main():
    ab, bc, ca = [int(x) for x in stdin.readline().rstrip().split()]
    print(ab * bc // 2)


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
#coding:utf-8
len = list(map(int,input().split()))

def return_min(x,y):
  if x > y:
    return y
  else:
    return x

min = len[0]
min_index = 0
if min > len[1]:
  min = len[1]
  min_index = 1
if min > len[2]:
  min = len[2]
  min_index = 2
  
if min_index == 0:
  res = min * return_min(len[1],len[2]) /2
elif min_index == 1:
  res = min * return_min(len[0],len[2]) /2
else:
  res = min * return_min(len[0],len[1]) /2

print(res)

#coding:utf-8
len = list(map(int,input().split()))

def return_min(x,y):
  if x > y:
    return y
  else:
    return x

min = len[0]
min_index = 0
if min > len[1]:
  min = len[1]
  min_index = 1
if min > len[2]:
  min = len[2]
  min_index = 2
  
if min_index == 0:
  res = min * return_min(len[1],len[2]) /2
elif min_index == 1:
  res = min * return_min(len[0],len[2]) /2
else:
  res = min * return_min(len[0],len[1]) /2

print(int(res))

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(float,input().split())

print(AB*BC/2)


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

print(int(AB*BC/2))


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
# -*- coding:utf-8 -*
n_list = list(map(int, input().split()))
print((n_list[0]*n_list[1])/2)


# -*- coding:utf-8 -*
n_list = list(map(int, input().split()))
res = (n_list[0]*n_list[1])/2
print(int(res))


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

S = ab * bc /2

print(S)

ab, bc, ca = map(int, input().split())
5 12 13
S = int((ab * bc) /2)

print(S)

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

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):
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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

print((a*c)//2)

#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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


ab, bc, ac = map(int, input().split(' '))
print(int(ab * bc * 0.5))


Verdicts: Wrong Answer

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

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


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


Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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


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


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

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


def main():
    a = map(int, input().split())
    print(run(a))


if __name__ == '__main__':
    main()


def run(a):
    return a[0] * a[1] // 2


def main():
    a = list(map(int, input().split()))
    print(run(a))


if __name__ == '__main__':
    main()


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

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

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

import math

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

s = a+b+c / 3
print(math.sqrt(s * (s-a) * (s-b) * (s-c)))

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

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

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
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)*min(max(a,b),c))//2)

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

Verdicts: Runtime Error

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

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

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
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(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=list(input().split())
b=int(a[0])
c=int(a[1])
print(c*b/2)

a,b,c=list(input().split())
AB=int(a)
BC=int(b)
ptint(int(AB*BC/2))

a,b,c=list(input().split())
A=int(a)*int(b)/2
ptint(A)


a,b,c=list(input().split())
A=int(a*b/2)
ptint(A)


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


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

Verdicts: Wrong Answer

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


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


Verdicts: Runtime Error

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

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


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


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

if D == 25:
    print("Christmas")

elif D == 24:
    print("Christmas Eve")

elif D == 23:
    print("Christmas Eve Eve")

else:
    print("Christmas Eve Eve Eve")

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

a.sort()

print(a[0] * a[1] * 0.5)


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

a.sort()

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

if a**2+b**2 == c**2:
    print(a*b/2)
elif b**2+c**2 == a**2:
    print(b*c/2)
else:
    print(c*a/2)

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

if a**2+b**2 == c**2:
    print(int(a*b/2))
elif b**2+c**2 == a**2:
    print(int(b*c/2))
else:
    print(int(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, 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):
grid=[[int(i) for i in input().split()]for i in range(i)]
print(grid[0]*grid[1]/2)

a = [input() for i in range(3)]
print(a[0]*a[1]/2)

a = [input() for i in range(3)]
print(a[0]＊a[1]/2)

a = list(int(i) for i in input().split())
print(a[0]*a[1]//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):
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):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #AB
list1_1 = list1[1] #BC
list1_2 = list1[2] #CA

if (list1_0 * list1_1 / 2) > 1:
    print(list1_0 * list1_1 / 2)
else:
    print(list1)

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #AB
list1_1 = list1[1] #BC
list1_2 = list1[2] #CA

if (list1_0 * list1_1 // 2) > 1:
    print(list1_0 * list1_1 // 2)
else:
    print(list1)

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 read_input1():
    n, k = map(int, input().split())

    data_tuples = []
    for i in range(n):
        data_tuples.append(tuple(map(int, input().split())))

    return n, k, data_tuples


def count_neta(sushi_set):
    neta = {s[0] for s in sushi_set}
    return len(neta)


def sum_oishisa(sushi_set):
    oishisa = [s[1] for s in sushi_set]
    return sum(oishisa)


def check_value(sushi_set):
    neta_count = count_neta(sushi_set)
    oishisa = sum_oishisa(sushi_set)

    return oishisa + (neta_count * neta_count)



def check_changable_sushi(sushi_set):
    neta_count = count_neta(sushi_set)

    target = None
    for s in sushi_set:
        temp_sushi_set = sushi_set.remove(s)
        temp_neta_count = count_neta(temp_sushi_set)

        if neta_count == temp_neta_count:
            if target is None or target[1] > s[1]:
                target = s

        temp_sushi_set.append(s)
    return target


def find_other_sushi(all_sushi_set, sushi_set):
    neta_eaten = [s[0] for s in sushi_set]
    candidate_sushi = [sushi for sushi in all_sushi_set if sushi[0] not in neta_eaten]

    if candidate_sushi:
        target = max(candidate_sushi, key=lambda x: x[1])
    else:
        target = None

    return target


def next_neta_variation(all_sushi_set, sushi_set):
    drop_target = check_changable_sushi(sushi_set)
    if drop_target:
        insert_target = find_other_sushi(all_sushi_set, sushi_set)

        if insert_target:
            new_set = sushi_set.copy()
            new_set.remove(drop_target)
            new_set.append(insert_target)
            return new_set
    return None


if __name__ == '__main__':
    n, k, sushis = read_input1()
    neta_candidate = {}

    sushis.sort(key=lambda x: x[1], reverse=True)

    init_sushi_set = sushis[:k].copy()
    neta_count = count_neta(init_sushi_set)
    neta_candidate[neta_count] = init_sushi_set

    curr_sushi_set = init_sushi_set
    while True:
        next_sushi_set = next_neta_variation(sushis, curr_sushi_set)
        if not next_sushi_set:
            break

        curr_sushi_set = next_sushi_set
        neta_count = count_neta(curr_sushi_set)
        neta_candidate[neta_count] = curr_sushi_set

    max_score = -1
    for sushis in neta_candidate.values():
        score = check_value(sushis)
        if max_score < score:
            max_score = score

    print(max_score)


ab, bc, ca = input().split()
print(int((int(ab)*int(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 = map(int, input().split())
print('%d' % a*b/2)

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

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

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

Verdicts: Runtime Error

Wrong Answer

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)

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

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()


import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

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

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

print(a * b / 2)


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

print(a * b / 2)


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

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

a_list = list(map(int, input().split()))
a_list.sort()
print(int(a_list[0] * a_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):
ab,bc,ca=map(int,input().split())
print(ab*bc/2)

s=int(input())
li=[s]
for i in range(1000000):
  if s%2==0:
    s=s//2
  else:
    s=3*s+1
  if s in li:
    print(i+2)
    break
  li.append(s)


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

Verdicts: Wrong Answer

Runtime Error

Accepted