TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: We will play a one-player game using a number line and N pieces.  First, we place each of these pieces at some integer coordinate.  Here, multiple pieces can be placed at the same coordinate.  Our objective is to visit all of the M coordinates X_1, X_2, ..., X_M with these pieces, by repeating the following move:  **Move** : Choose a piece and let x be its coordinate. Put that piece at coordinate x+1 or x-1.  Note that the coordinates where we initially place the pieces are already regarded as visited.  Find the minimum number of moves required to achieve the objective.

Submission attempts (in order):
import math

def solve(N,M,Xs):
    if N >= M:
        return 0

    Ds = [abs(Xs[i]-Xs[i+1]) for i in range(len(Xs)-1)] # Ds[j] := distance between j and j+1

    Ds.sort()
    print(Ds)
    

    if N == 1:
        return sum(Ds)

    return sum(Ds[0:len(Ds)-(math.ceil(N/2))])

def main():
    N, M = map(int, input().split())
    Xs = list(map(int, input().split()))
    Xs.sort()
    print(solve(N,M,Xs))


if __name__ == '__main__':
    main()

import math

def solve(N,M,Xs):
    if N >= M:
        return 0

    Ds = [abs(Xs[i]-Xs[i+1]) for i in range(len(Xs)-1)] # Ds[j] := distance between j and j+1

    Ds.sort()
    print(Ds)
    

    return sum(Ds[0:len(Ds)-(math.ceil(N/2))])

def main():
    N, M = map(int, input().split())
    Xs = list(map(int, input().split()))
    Xs.sort()
    print(solve(N,M,Xs))


if __name__ == '__main__':
    main()

import math

def solve(N,M,Xs):
    if N >= M:
        return 0

    Ds = [abs(Xs[i]-Xs[i+1]) for i in range(len(Xs)-1)] # Ds[j] := distance between j and j+1

    Ds.sort()
    #print(Ds)
    

    #ntake = math.ceil(N/2)
    ntake = N-1

    return sum(Ds[0:len(Ds)-ntake])

def main():
    N, M = map(int, input().split())
    Xs = list(map(int, input().split()))
    Xs.sort()
    print(solve(N,M,Xs))


if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: We will play a one-player game using a number line and N pieces.  First, we place each of these pieces at some integer coordinate.  Here, multiple pieces can be placed at the same coordinate.  Our objective is to visit all of the M coordinates X_1, X_2, ..., X_M with these pieces, by repeating the following move:  **Move** : Choose a piece and let x be its coordinate. Put that piece at coordinate x+1 or x-1.  Note that the coordinates where we initially place the pieces are already regarded as visited.  Find the minimum number of moves required to achieve the objective.

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

num=n-1
sl=sorted(l)

dsl=[sl[i+1]-sl[i] for i in range(m-1)]
priny(dsl)

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

if n>=m:
  print(0)
else:
  num=n-1
  sl=sorted(l)

  dsl=[abs(sl[i+1]-sl[i]) for i in range(m-1)]

  dsl=sorted(dsl)
  print(sum(dsl[0:len(dsl)-num]))


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

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

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

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

print(int(ab * bc / 2)

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

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

Verdicts: Wrong Answer

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

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

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

a,b,c = input().split(" ")
a,b,c = int(a),int(b),int(c)
area = int(a*b*c/(max(a,b,c)*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):
 import math, string, itertools, fractions, heapq, collections, re,  array, bisect, sys, random, time, copy, functools
from operator import itemgetter


sys.setrecursionlimit(10**7)
inf = 10 ** 20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]


def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)

def main():
    
    N, K = LI()
    T = []
    D = []
    TD = []
    for i in range(N):
        TD.append(LI())
    #  print(T, '\n', D)
    TD = sorted(TD, key=itemgetter(1), reverse=True)
    #  print('TD', TD)

    max_value_per_type = [[t, max([td[1] for td in TD if td[0] == t])]for t in set([i[0] for i in TD])]
    #  print('max_value_per_type', max_value_per_type)
    content_per_type = [[t, [i[1] for i in TD if i[0] == t]] for t in set(i[0] for i in TD)]
    #  print(content_per_type)
    max_idx_per_type = [i[1].index([mvpt[1] for mvpt in max_value_per_type if mvpt[0] == i[0]][0]) for i in content_per_type]
    #  print('max_idx_per_type', max_idx_per_type)
    for idx, i in enumerate(max_idx_per_type):
        del content_per_type[idx][1][i]
    #  remaining_values_per_type = [[c[0], [i[0] for i in content_per_type if ]] for c in content_per_type]
    
    results = [0]
    for i in range(1, K+1):
        
        
        
        
        
        #  print(i)
        if len(set([i[0] for i in TD])) < i:
            break 
        combinations = list(itertools.combinations(set([i[0] for i in TD]), i))
        #  print('combi', combinations)
        type_bonus = i * i
        for combination in combinations:
            #  print('\n')
            
            current_options = [i for i in TD if i[0] in combination]
            
    print(max(results))


main()


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

result = AB * BC / 2

print(result)


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

result = int(AB * BC / 2)

print(result)


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

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


Verdicts: Wrong Answer

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

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

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

N,M,L = map(int, input().split())
print(int(N*M/2))

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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


Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
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,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*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=map(int,input().split())

print(1/2*a*b)

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

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

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

if (a >= b) and (a <= c):
    print(b*c)
if b >= a and b >= c:
    print(a*c)
print(a*b)


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

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


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

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

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

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


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

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

Verdicts: Runtime Error

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


ary1 = list(map(int,input().split()))
ary2 = sorted(ary1)
print(ary2[0]*ary2[1])

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


Verdicts: Wrong Answer

Wrong Answer

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

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

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


Verdicts: Runtime Error

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

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

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

Verdicts: Wrong Answer

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

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

a,b,c=map(int,input().split())	!map(int　でinputの中身をint性質にしている
print(b*a//2)					!//はint表示、/はreal表示。多分

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

Verdicts: Wrong Answer

Runtime Error

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

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

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

Verdicts: Wrong Answer

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

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


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




def nCast(number):
    if type(number)==str:
        return int(number)
    for idx in range(0,len(number)):
        if type(number[idx])==str:

            number[idx]=int(number[idx])
        else:
            nCast(number[idx])
    return number
    
def inputArr(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l
def inputArr1(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l

a=nCast(input().split())


def func():
    a.sort()

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







import math
import copy




def nCast(number):
    if type(number)==str:
        return int(number)
    for idx in range(0,len(number)):
        if type(number[idx])==str:

            number[idx]=int(number[idx])
        else:
            nCast(number[idx])
    return number
    
def inputArr(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l
def inputArr1(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l

a=nCast(input().split())


def func():
    a.sort()
    return int(a[0]*a[1]*0.5)
print(func()) 







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 * 0.5)

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

print(int(a * b * 0.5))

Verdicts: Wrong Answer

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

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

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


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


Verdicts: Runtime Error

Wrong Answer

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

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

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

a,b,c=map(int,input());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, B, C = (int(i) for i in input().split())
print(A*B)

A, B, C = (int(i) for i 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):
def resolve():
    s=int(input())
    l=[s]
    for i in range(10**6):
        if l[i]%2==0:
            if l[i]//2 in l:
                print(i+2)
                break
            else:
                l.append(l[i]//2)
        else:
            if 3*l[i]+1 in l:
                print(i+2)
                break
            else:
                l.append(3 * l[i] + 1)
resolve()


import sys
def input(): return sys.stdin.readline().strip()

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

Verdicts: Runtime Error

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

Submission attempts (in order):
n,k=map(int,input().split())
li=[[0,0] for i in range(n)]
for i in range(n):
    li[i][0],li[i][1]=map(int,input().split())

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

def find_num_neta(choice,li):
    k=[]
    for i in choice:
        k.append(li[i][0])
    return len(set(k))

#-----------------------------------------
best_list=[]
best_list_neta=[]
not_best_list=[]

for i in li:
    if i[0] in best_list_neta:
        not_best_list.append(i[1])
    else:
        best_list.append(i[1])
        best_list_neta.append(i[0])


s2=min(len(best_list_neta),k)
s1=find_num_neta(list(range(k)),li)


score=-1
for i in range(s1,s2+1):
    oishisa=0
    for j in range(i):
        oishisa+=best_list[j]
    for j in range(k-i):
        oishisa+=not_best_list[j]
    
    new_score=i**2+oishisa

    if score<new_score:
        score=new_score
        
    
print(score)

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

answer=AB*BC/2

print(answer)

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

answer=AB*BC//2

print(answer)

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

answer = (|BC| * |AB|) /2

print(int(answer))

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

answer = (BC * AB) /2

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

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
def odd(a):
    return a/2

def even(b):
    return 3*b+1

num = int(input())
box = [num]
cnt = 0
answer = 0
while(True):
    if(num%2 == 0):
        num = odd(num)
    else:
        num = even(num)
    box.append(num)
    for i in range(len(box)-1):
        if(box[i] == num):
            answer = i
    if(answer != 0):
        print(str(i+2))
        break

x = input()
box= x.split(" ")

add = int(box[0]) * int(box[1])/ 2
print(int(add))

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

s=(a+b+c)/2

print((s*(s-a)*(s-b)*(s-c))**(1/2))

a,b,c=(int(i) for i in input().split())
 
s=(a+b+c)/2
 
print(int((s*(s-a)*(s-b)*(s-c))**(1/2)))

Verdicts: Wrong Answer

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

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


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


Verdicts: Wrong Answer

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

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

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

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

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

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

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

Verdicts: 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):
# ABC116A - Right Triangle
sides = sorted(list(map(int, input().split())))

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

# ABC116A - Right Triangle
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):
AB, BC, CA = map(int, input().split())
S = AB*BC/2

print(S)

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

print(S)

Verdicts: Wrong Answer

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

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

n=int(input())
h=list(map(int,input().split()))
cost=0
for i in range(n-1):
    if h[i]>h[i+1]:
        cost+=(h[i]-h[i+1])
    cost+=h[n-1]
print(cost)

l=list(map(int,input().split()))
l.remove(max(l))
print(int(l[0]*l[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())
if  1 <= ab <= 100 and 1 <= bc <= 100 and 1 <= ca <= 100:
    print(ab * bc / 2)
else:
    print('hoge!')

ab, bc, ca = map(int, input().split())
if  1 <= ab <= 100 and 1 <= bc <= 100 and 1 <= ca <= 100:
    print(int(ab * bc / 2))
else:
    print('hoge!')

Verdicts: Wrong Answer

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

Submission attempts (in order):
a, b, c = [int(i) for i in input().split()]
if a >= b and a >= c:
 print(c*b//2)
else if b >= c and b >= a:
 print(a*c//2)
else
 print(a*b//2)

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


a, b, c = [int(i) for i in input().split()]
if a >= b and a >= c:
 print(c*b//2)
elif b >= c and b >= a:
 print(a*c//2)
else:
 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 = 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())
result=(bc*ab)/2
print(result)

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


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

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

AB,BC,CU = input().split()
AB = int(AB)
BC = int(BC)
CU = int(CU)

area = (AB * BC )/ 2
print(area)

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

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

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

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

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(str(0.5*a*b))

mizuyari=0
n=int(input())
s=list(map(int,input().split()))
def hiku(n):
    return n-1
for i in range(100):
    if s[0]>0:
        mizuyari+=1
    for j in range(n-1):
        if s[j]<=0 and s[j+1]>0:
            mizuyari+=1
    s=list(map(hiku,s))
else:
  print(mizuyari)


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

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

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

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

Verdicts: Wrong Answer

Runtime Error

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

print((AB * BC) / 2)

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

print((AB * BC) // 2)

Verdicts: Wrong Answer

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

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

S = AB*BC / 2
print(S)

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

Verdicts: Wrong Answer

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

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

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

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

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

Verdicts: Wrong Answer

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

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

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

Verdicts: Wrong Answer

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

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

line.sort()

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

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

line.sort()

print( "{:d}".format( int(line[0] * line[1] / 2)) )

Verdicts: Wrong Answer

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

Submission attempts (in order):

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

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



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

printint(((a*b*c)/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):


from sys import stdin
from numpy import sum

input = stdin.readline

N, K = [int(n) for n in input().split()]
INPUT = [[None for i in range(2)] for j in range(N)]
List1, List2 = [], []
kind1 = []

for i in range(N):
    INPUT[i][0], INPUT[i][1] = [int(m) for m in input().split()]

INPUT = sorted(INPUT, key = lambda x: (x[1], x[0]), reverse=True)

for i in range(N):
    if INPUT[i][0] not in kind1:
            List1.append([INPUT[i][1], 1])
            kind1.append(INPUT[i][0])
    else: List1.append([INPUT[i][1], 0])

List2 = List1[K:]
if List2 != []:
    List2.sort(key =lambda x : (x[1],x[0]))
    del List1[K:]
    lenList2 = len(List2)
else: lenList2 = 0

List1 = sorted(List1, key = lambda x : (x[1], x[0]), reverse=True)

sum = sum(List1, axis = 0)

Score = sum[0] + sum[1]**2
Test = Score
kindnumber = sum[1]

for i in range(lenList2):
    if List2[-1][1] == 0 or List1[-1][1] == 1:
        break
    Test = Test - List1.pop()[0] + List2.pop()[0] + 2 * kindnumber + 1
    kindnumber = kindnumber + 1
    if Test >= Score:
        Score = Test

print(int(Score))




from sys import stdin
#from numpy import sum

input = stdin.readline

N, K = list(map(int, input().split()))
List1= []
kind = set()
point1, point2 = 0, 0

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

INPUT.sort(key = lambda x: -x[1])

for ti, di in INPUT[:K]:
    point1 += di
    if ti in kind:
        List1.append(di)
    kind.add(ti)

point2 = len(kind)

Score = point1 + point2**2
Test = Score

List1POP = List1.pop

for ti, di in INPUT[K:]:
    if 0 >= len(List1):
        break
    if ti in kind:
        continue
    Test = Test - List1POP() + di + 2 * point2 + 1
    point2 += 1
    kind.add(ti)
    Score = max(Score, Test)

print(Score)


#ABC116A-RightTriangle.py

INPUT = input().split()

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


Verdicts: Runtime Error

Runtime Error

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

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

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


Verdicts: Wrong Answer

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

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


arr = list(map(int,input().split()))
print(int(arr[0]*arr[1]*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):
colatz=[1,2,4]
colatz.append(int(input()))
if colatz[3]==1 or 2 or 4:
    print(4)
else:
    b=3
    while colatz[b]!=4:
        if colatz[b]%2==0:
            colatz.append(colatz[b]/2)
        else: colatz.append(3*colatz[b]+1)
        b=b+1
    print(b+1)

a=list(map(int,input().split()))
print(a0*a1/2)

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

colatz=[1,2,4]
colatz.append(int(input()))
if colatz[3]==1 or 2 or 4:
    print(4)
else:
    b=3
    while colatz[b]!=4:
        if colatz[b]%2==0:
            colatz.append(colatz[b]/2)
        else: colatz.append(3*colatz[b]+1)
        b=b+1
    print(b+1)

colatz=[1,2,4]
colatz.append(int(input()))
b=3
while colatz[b]!=colatz[b-3]:
    if colatz[b]%2==0:
        colatz.append(colatz[b]/2)
    else: colatz.append(3*colatz[b]+1)
    b=b+1
print(b+1)

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

a=list(map(int,input().split()))
print('{:.0f}'.format(a[0]*a[1]/2))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

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

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

S = AB * BC / 2

print(S)

|AB| * |BC| / 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,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)


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

print(eval("*".join(input().split()[:2]))//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())
res = int(a*b/2)

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

sum = 0
flag = 0
for i in range(100000):
    if a[i] % 2 == 0:
        a[i+1] = a[i] // 2
    else:
        a[i+1] = 3 * a[i] + 1
    sum += 1
    if a[i] in a[:i]:
        print(sum)
        exit()


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

menseki = a * b // 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(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):
k=0
ind=0
l=[]
i=int(input())
l.append(i)
def guusuu():
    k=l[ind]/2
    return int(k)
    
def kisuu():
    k=l[ind]*3+1
    return int(k)

while ind<1000:
    if l[ind]%2==0:
        l.append(guusuu())
    else:
        l.append(kisuu())
    ind+=1       

print((l.index(4))+4)

k=0
ind=0
l=[]
i=int(input())
l.append(i)
def guusuu():
    k=l[ind]/2
    return int(k)
    
def kisuu():
    k=l[ind]*3+1
    return int(k)

while ind<500:
    if l[ind]%2==0:
        l.append(guusuu())
    else:
        l.append(kisuu())
    ind+=1       

print((l.index(4))+4)

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

Verdicts: Runtime Error

Runtime Error

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

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

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

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

Verdicts: Runtime Error

Runtime Error

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

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

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

Verdicts: Wrong Answer

Accepted