problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03145
u083960235
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l=list(map(int,input().split()))\nl.remove(max(l))\nprint(l[0]*l[1]/2)', 'n=int(input())\nh=list(map(int,input().split()))\ncost=0\nfor i in range(n-1):\n if h[i]>h[i+1]:\n cost+=(h[i]-h[i+1])\n cost+=h[n-1]\nprint(cost)', 'l=list(map(int,input().split()))\nl.remove(max(l))\nprint(int(l[0]*l[1]/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s814149572', 's899545500', 's808395065']
[2940.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0]
[68, 152, 73]
p03145
u084357428
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
["ab, bc, ca = map(int, input().split())\nif 1 <= ab <= 100 and 1 <= bc <= 100 and 1 <= ca <= 100:\n print(ab * bc / 2)\nelse:\n print('hoge!')", "ab, bc, ca = map(int, input().split())\nif 1 <= ab <= 100 and 1 <= bc <= 100 and 1 <= ca <= 100:\n print(int(ab * bc / 2))\nelse:\n print('hoge!')"]
['Wrong Answer', 'Accepted']
['s608828465', 's318402712']
[2940.0, 2940.0]
[17.0, 17.0]
[144, 149]
p03145
u084411645
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = [int(i) for i in input().split()]\nif a >= b and a >= c:\n print(c*b//2)\nelse if b >= c and b >= a:\n print(a*c//2)\nelse\n print(a*b//2)', 'a, b, c = [int(i) for i in input().split()]\nif a >= b and a >= c:\n print(c*b//2)\nelse if b >= c and b >= a:\n print(a*c//2)\nelse:\n print(a*b//2)\n', 'a, b, c = [int(i) for i in input().split()]\nif a >= b and a >= c:\n print(c*b//2)\nelif b >= c and b >= a:\n print(a*c//2)\nelse:\n print(a*b//2)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s058349656', 's879787789', 's965943739']
[8904.0, 8872.0, 9096.0]
[28.0, 27.0, 35.0]
[142, 144, 141]
p03145
u086503932
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().split())\nprint(a*b/2)', 'a,b,c = map(int,input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s854098370', 's257512811']
[2940.0, 2940.0]
[18.0, 17.0]
[45, 50]
p03145
u088020258
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca=map(int,input().split())\nresult=(bc*ab)/2\nprint(result)', 'ab,bc,ca=map(int,input().split())\nresult=(bc*ab)/2\nprint(int(result))\n']
['Wrong Answer', 'Accepted']
['s578403416', 's058068695']
[2940.0, 2940.0]
[18.0, 18.0]
[64, 70]
p03145
u089230684
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB = int(input())\nBC = int(input())\nCA = int(input())\nprint((AB*BC)/2)', 'triangulo = input()\nlados = triangulo.split()\nAB = lados[0]\nBC = lados[1]\narea = (int(AB) * int(BC))/2\nprint(area)', 'AB,BC,CU = input().split()\nAB = int(AB)\nBC = int(BC)\nCU = int(CU)\n\narea = (AB * BC )/ 2\nprint(area)', 'line = input()\nsides= [int(n) for n in line.split()]\nsides.sort()\narea = round(sides[0] * sides[1]/2)\nprint(area)']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s376093491', 's577814502', 's791930998', 's071372904']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[70, 114, 99, 113]
p03145
u090032260
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int,input().split())\nans = ab*bc/2\nprint(ans)', 'c,a,b = map(int,input().split())\nans = c*a/2\nprint(ans)', 'ab,bc,ca = map(int,input().split())\nans = int(ab*bc/2)\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s164560697', 's391352869', 's469275721']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[60, 55, 65]
p03145
u092620892
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(str(0.5*a*b))', 'mizuyari=0\nn=int(input())\ns=list(map(int,input().split()))\ndef hiku(n):\n return n-1\nfor i in range(100):\n if s[0]>0:\n mizuyari+=1\n for j in range(n-1):\n if s[j]<=0 and s[j+1]>0:\n mizuyari+=1\n s=list(map(hiku,s))\nelse:\n print(mizuyari)\n', 'a,b,c=map(int,input().split())\nprint(str(0.5*(a+b)))', 'a,b,c=map(int,input().split())\nprint(str(0.5*(a+c)))', 'a,b,c=map(int,input().split())\nprint(str(int(0.5*(a+c))))', 'a,b,c=map(int,input().split())\nprint(str(int(0.5*a*b)))']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s653859978', 's776172604', 's856376422', 's897762836', 's966778279', 's811655165']
[2940.0, 3060.0, 2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 18.0, 20.0, 17.0, 17.0, 17.0]
[50, 273, 52, 52, 57, 55]
p03145
u093033848
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC, CA = map(int, input().split())\n\nprint((AB * BC) / 2)', 'AB, BC, CA = map(int, input().split())\n\nprint((AB * BC) // 2)']
['Wrong Answer', 'Accepted']
['s209561849', 's519033084']
[2940.0, 2940.0]
[18.0, 17.0]
[60, 61]
p03145
u095756391
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC, CA = map(int, input().split())\n\nS = AB*BC / 2\nprint(S)', 'AB, BC, CA = map(int, input().split())\n \nS = int(AB*BC / 2)\nprint(S)']
['Wrong Answer', 'Accepted']
['s655581311', 's277432319']
[2940.0, 2940.0]
[18.0, 17.0]
[62, 68]
p03145
u096359533
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['lines=list(map(int,input().split()))\nlines.sort()\n\nprint(lines[0]*lines[1]/2)', 'lines=list(map(int,input().split()))\nlines.sort()\n\nprint(int(lines[0]*lines[1]/2))']
['Wrong Answer', 'Accepted']
['s694815378', 's696364181']
[2940.0, 2940.0]
[18.0, 19.0]
[77, 82]
p03145
u096736378
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int, input().split())\nprint(a*b/2)', 'a,b,c = map(int, input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s377008430', 's771177828']
[2940.0, 3064.0]
[18.0, 18.0]
[46, 51]
p03145
u101490607
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['line = list( map(int, input().split()))\n\nline.sort()\n\nprint( line[0] * line[1] / 2)', 'line = list( map(int, input().split()))\n\nline.sort()\n\nprint( "{:d}".format( int(line[0] * line[1] / 2)) )']
['Wrong Answer', 'Accepted']
['s073371631', 's044540242']
[2940.0, 3064.0]
[17.0, 18.0]
[83, 105]
p03145
u102242691
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['\na,b,c = map(int,input().split())\n\nprint((a*b*c)/2)\n', '\na,b,c = map(int,input().split())\n\nprintint(((a*b*c)/2))\n', '\na,b,c = map(int,input().split())\n\nprint(int(((a*b)/2)))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s036917221', 's134625662', 's064772988']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[52, 57, 57]
p03145
u102367647
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['\n\nfrom sys import stdin\nfrom numpy import sum\n\ninput = stdin.readline\n\nN, K = [int(n) for n in input().split()]\nINPUT = [[None for i in range(2)] for j in range(N)]\nList1, List2 = [], []\nkind1 = []\n\nfor i in range(N):\n INPUT[i][0], INPUT[i][1] = [int(m) for m in input().split()]\n\nINPUT = sorted(INPUT, key = lambda x: (x[1], x[0]), reverse=True)\n\nfor i in range(N):\n if INPUT[i][0] not in kind1:\n List1.append([INPUT[i][1], 1])\n kind1.append(INPUT[i][0])\n else: List1.append([INPUT[i][1], 0])\n\nList2 = List1[K:]\nif List2 != []:\n List2.sort(key =lambda x : (x[1],x[0]))\n del List1[K:]\n lenList2 = len(List2)\nelse: lenList2 = 0\n\nList1 = sorted(List1, key = lambda x : (x[1], x[0]), reverse=True)\n\nsum = sum(List1, axis = 0)\n\nScore = sum[0] + sum[1]**2\nTest = Score\nkindnumber = sum[1]\n\nfor i in range(lenList2):\n if List2[-1][1] == 0 or List1[-1][1] == 1:\n break\n Test = Test - List1.pop()[0] + List2.pop()[0] + 2 * kindnumber + 1\n kindnumber = kindnumber + 1\n if Test >= Score:\n Score = Test\n\nprint(int(Score))\n', '\n\nfrom sys import stdin\n#from numpy import sum\n\ninput = stdin.readline\n\nN, K = list(map(int, input().split()))\nList1= []\nkind = set()\npoint1, point2 = 0, 0\n\nINPUT = [tuple(map(int, input().split())) for _ in range(N)]\n\nINPUT.sort(key = lambda x: -x[1])\n\nfor ti, di in INPUT[:K]:\n point1 += di\n if ti in kind:\n List1.append(di)\n kind.add(ti)\n\npoint2 = len(kind)\n\nScore = point1 + point2**2\nTest = Score\n\nList1POP = List1.pop\n\nfor ti, di in INPUT[K:]:\n if 0 >= len(List1):\n break\n if ti in kind:\n continue\n Test = Test - List1POP() + di + 2 * point2 + 1\n point2 += 1\n kind.add(ti)\n Score = max(Score, Test)\n\nprint(Score)\n', '#ABC116A-RightTriangle.py\n\nINPUT = input().split()\n\nprint(int(int(INPUT[0])*int(INPUT[1]) / 2))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s738059610', 's997634940', 's089581098']
[12516.0, 3188.0, 2940.0]
[153.0, 19.0, 17.0]
[1101, 691, 96]
p03145
u103902792
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,_ = map(int,input().split())\nprint(a*b /2)', 'a,b,_ = map(int,input().split())\nprint(int(a*b /2))\n']
['Wrong Answer', 'Accepted']
['s074034675', 's096873177']
[2940.0, 2940.0]
[17.0, 17.0]
[46, 52]
p03145
u106342872
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['arr = list(map(int,input()))\nprint(int(arr[0]*arr[1]*0.5))\n', 'arr = list(map(int,input().split()))\nprint(int(arr[0]*arr[1]*0.5))\n']
['Runtime Error', 'Accepted']
['s449510632', 's004390657']
[2940.0, 2940.0]
[17.0, 18.0]
[59, 67]
p03145
u107737169
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['colatz=[1,2,4]\ncolatz.append(int(input()))\nif colatz[3]==1 or 2 or 4:\n print(4)\nelse:\n b=3\n while colatz[b]!=4:\n if colatz[b]%2==0:\n colatz.append(colatz[b]/2)\n else: colatz.append(3*colatz[b]+1)\n b=b+1\n print(b+1)', 'a=list(map(int,input().split()))\nprint(a0*a1/2)', 'a=list(map(int,input().split()))\nprint(a[0]*a[1]/2)', 'colatz=[1,2,4]\ncolatz.append(int(input()))\nif colatz[3]==1 or 2 or 4:\n print(4)\nelse:\n b=3\n while colatz[b]!=4:\n if colatz[b]%2==0:\n colatz.append(colatz[b]/2)\n else: colatz.append(3*colatz[b]+1)\n b=b+1\n print(b+1)', 'colatz=[1,2,4]\ncolatz.append(int(input()))\nb=3\nwhile colatz[b]!=colatz[b-3]:\n if colatz[b]%2==0:\n colatz.append(colatz[b]/2)\n else: colatz.append(3*colatz[b]+1)\n b=b+1\nprint(b+1)', 'a=list(map(int,input().split()))\nprint(a[0]*a[1]/2)', "a=list(map(int,input().split()))\nprint('{:.0f}'.format(a[0]*a[1]/2))"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s190894414', 's451765577', 's597301942', 's814190247', 's816918271', 's894326154', 's314212164']
[3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 19.0, 17.0, 17.0]
[258, 47, 51, 258, 194, 51, 68]
p03145
u112318601
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['c,a,b=map(int,input().split())\nprint(a*c)', 'c,a,b=map(int,input().split( ))\nprint(a*c/2)', 'c,a,b=map(int(input().split()))\nprint(a*c)', 'c,a,b=map(int,input().split( ))\nprint(int(a*c/2))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s174455132', 's552607249', 's760210151', 's408731362']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[41, 44, 42, 49]
p03145
u112366820
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC, CA = map(int, input().split())\n\nS = AB * BC / 2\n\nprint(S)', '|AB| * |BC| / 2', 'ab, bc, ca = map(int, input().split())\n\nprint(int(ab*bc/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s414988930', 's923748406', 's581936876']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[65, 15, 59]
p03145
u112623731
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A,B = map(int, input(),split())\nprint(A*B/2)', 'A,B,C = map(int, input().split())\nprint(A*B/2)\n', 'A,B,C = map(int, input().split())\nprint(A*B//2)\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s146191989', 's560618735', 's193574075']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[44, 47, 48]
p03145
u112902287
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['print(eval("*".join(list(map(int, input().split()))[:2]))//2)', 'print(eval("*".join(input().split()[:2]))//2)']
['Runtime Error', 'Accepted']
['s840977097', 's846966198']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 45]
p03145
u113255362
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nres = int(a*b/2)', 'a,b,c=map(int,input().split())\nres = int(a*b/2)\nprint(res)']
['Wrong Answer', 'Accepted']
['s612201999', 's505399434']
[9008.0, 9164.0]
[26.0, 28.0]
[47, 58]
p03145
u115078212
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['s = int(input())\na = [0] * 100000\na[0] = s\n\nsum = 0\nflag = 0\nfor i in range(100000):\n if a[i] % 2 == 0:\n a[i+1] = a[i] // 2\n else:\n a[i+1] = 3 * a[i] + 1\n sum += 1\n if a[i] in a[:i]:\n print(sum)\n exit()\n', 'a, b, c = map(int, input().split())\n\nmenseki = a * b // 2\n\nprint(menseki)\n']
['Runtime Error', 'Accepted']
['s816722662', 's216557422']
[3060.0, 2940.0]
[17.0, 18.0]
[243, 74]
p03145
u116233709
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)', 'a,b,c=map(int,input().split())\nprint(int(a*b/2))\n']
['Wrong Answer', 'Accepted']
['s652243835', 's377050538']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 49]
p03145
u117193815
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['k=0\nind=0\nl=[]\ni=int(input())\nl.append(i)\ndef guusuu():\n k=l[ind]/2\n return int(k)\n \ndef kisuu():\n k=l[ind]*3+1\n return int(k)\n\nwhile ind<1000:\n if l[ind]%2==0:\n l.append(guusuu())\n else:\n l.append(kisuu())\n ind+=1 \n\nprint((l.index(4))+4)', 'k=0\nind=0\nl=[]\ni=int(input())\nl.append(i)\ndef guusuu():\n k=l[ind]/2\n return int(k)\n \ndef kisuu():\n k=l[ind]*3+1\n return int(k)\n\nwhile ind<500:\n if l[ind]%2==0:\n l.append(guusuu())\n else:\n l.append(kisuu())\n ind+=1 \n\nprint((l.index(4))+4)', 'a,b,c =map(int, input().split())\nprint(int(a*b/2))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s719265480', 's977021622', 's373226714']
[3064.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0]
[282, 281, 50]
p03145
u118147328
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = map(int, input().split())\nprint(a * b / 2)', 'a, b, c = map(int, input().split())\nprint(a * b // 2)']
['Wrong Answer', 'Accepted']
['s825465413', 's679672209']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 53]
p03145
u119655368
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = map(int, input().split())\nprint(a*b/2)', 'a, b, c = map(int, input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s682572859', 's805419077']
[2940.0, 2940.0]
[18.0, 17.0]
[48, 53]
p03145
u119983020
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A = [int(n) for n in input().split())\nprint(A[0]*A[1]/2)', 'A = input().split()\nprint(A[0]*A[1]/2)', 'A = [int(n) for n in input().split()]\nprint(int(A[0]*A[1]/2))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s050267806', 's126104248', 's328708063']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[56, 38, 61]
p03145
u122195031
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = list(map(int,input().split()))\nprint((a*b)/2)', 'a,b,c = map(int,input().split())\nprint((a*b)//2)']
['Wrong Answer', 'Accepted']
['s963021956', 's055539077']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 48]
p03145
u123745130
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['x,y,_=map(int(input().split()))\nprint(x*y//2)', 'x,y,_=map(int,input().split())\nprint(x*y//2)']
['Runtime Error', 'Accepted']
['s617605372', 's816779175']
[2940.0, 2940.0]
[17.0, 19.0]
[45, 44]
p03145
u124589361
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int, input().split())\n\nret = ab*bc/2\n\nprint(ret)', 'ab,bc,ca = map(int, input().split())\n\nret = ab*bc//2\n\nprint(ret)']
['Wrong Answer', 'Accepted']
['s683754435', 's767256309']
[2940.0, 2940.0]
[20.0, 17.0]
[63, 64]
p03145
u126232616
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int, input().split())\n\nprint(ab * bc / 2)', 'ab,bc,ca = map(int, input().split())\n\nprint(int(ab * bc / 2))']
['Wrong Answer', 'Accepted']
['s262878777', 's514667485']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 61]
p03145
u128740947
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c =map(int,input().split())\nprint(a*b/2)', 'a, b, c =map(int,input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s182216297', 's043683584']
[3060.0, 2940.0]
[20.0, 18.0]
[46, 51]
p03145
u129978636
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)', 'a,b,c=map(int,input().split())\nprint(a*b//2)\n']
['Wrong Answer', 'Accepted']
['s089525582', 's295363910']
[2940.0, 2940.0]
[18.0, 18.0]
[43, 45]
p03145
u131264627
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = map(int, input().split())\nprint(a * b / 2)', 'a, b, c = map(int, input().split())\nprint(int(a * b / 2))\n']
['Wrong Answer', 'Accepted']
['s844974718', 's321363181']
[2940.0, 2940.0]
[18.0, 17.0]
[52, 58]
p03145
u131406572
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['#116a\na,b,c=map(int,input().split())\nprint((a+b)//2)', '#116a\na,b,c=map(int,input().split())\nprint((a*b)//2)']
['Wrong Answer', 'Accepted']
['s873375134', 's705561199']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 52]
p03145
u135197221
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['def mapt(fn, *args):\n return tuple(map(fn, *args))\n\n\ndef Input():\n return mapt(int, input().split(" "))\n\n\ndef main():\n a, b, c = Input()\n print(b * a * 1/2)\n\nmain()', 'def mapt(fn, *args):\n return tuple(map(fn, *args))\n\n\ndef Input():\n return mapt(int, input().split(" "))\n\n\ndef main():\n a, b, c = Input()\n print(b * a // 2)\n\nmain()']
['Wrong Answer', 'Accepted']
['s876304946', 's648066959']
[9064.0, 9068.0]
[30.0, 28.0]
[176, 175]
p03145
u136413513
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = map(int, input().split())\nprint(a * b / 2)\n\n', 'a, b, c = map(int, input().split())\nprint(int(a * b / 2))\n']
['Wrong Answer', 'Accepted']
['s276732137', 's162835615']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 58]
p03145
u136811344
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC, CA = map(int, input().split())\nprint(AB*BC/2)', 'AB, BC, CA = map(int, input().split())\nprint(int(AB*BC/2))\n']
['Wrong Answer', 'Accepted']
['s912903993', 's153971906']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 59]
p03145
u140697185
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A , B , C=map(int , input().split())\nprint(A*B/2)', 'A , B , C=map(int , input().split())\nprint(A*B/2)', 'A , B , C=map(int , input().split())\nprint(int(A*B/2))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s344707440', 's591907351', 's702747847']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[49, 49, 54]
p03145
u140724346
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB,BC,CA = map(int, input().split())\nprint(0.5 * AB * BC)', 'AB, BC, CA = map(int, input().split())\nprint(int(0.5 * AB * BC))']
['Wrong Answer', 'Accepted']
['s409432447', 's252571342']
[2940.0, 2940.0]
[18.0, 17.0]
[57, 64]
p03145
u143318682
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['# -*- coding: utf-8 -*-\nc, b, a = map(int, input().split())\nprint(c * b / 2)', '# -*- coding: utf-8 -*-\nc, b, a = map(int, input().split())\nprint(int(c * b / 2))']
['Wrong Answer', 'Accepted']
['s985167728', 's456053279']
[2940.0, 3060.0]
[17.0, 19.0]
[76, 81]
p03145
u143397629
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['# coding: utf-8\n\n# dateime: 2019-02-02 21:12:13\n# filename: abc116_a.py\n# blog: https://ismdeep.com\n\ns = input().split(" ")\nitem = [int(i) for i in s]\nitem.sort()\nprint(item[0] * item[1] / 2)\n', 's = input().split(" ")\nitem = [int(i) for i in s]\nitem.sort()\nprint(int(item[0] * item[1] / 2))\n']
['Wrong Answer', 'Accepted']
['s580697221', 's873321422']
[2940.0, 2940.0]
[18.0, 19.0]
[209, 96]
p03145
u144980750
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint((a*b)/2)', 'a,b,c=map(int,input().split())\nprint(int((a*b)/2))']
['Wrong Answer', 'Accepted']
['s689423283', 's421317838']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 50]
p03145
u148551245
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l = list(map(int,input().split()))\nprint(l[0] * l[1] / 2)', 'l = list(map(int,input().split()))\nprint(l[0] * l[2])', 'l = list(map(int,input().split()))\nprint(int(l[0] * l[1] / 2))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s235402585', 's749398363', 's726689955']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[57, 53, 62]
p03145
u149284596
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().split())\nprint(a*b/2)', 'a,b,c = map(int,input().split())\nprint(int(a*b/2))\n']
['Wrong Answer', 'Accepted']
['s933557002', 's794559122']
[2940.0, 2940.0]
[18.0, 18.0]
[45, 51]
p03145
u151625340
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['L = list(map(int, input().split()))\n\nL.pop(L[L.index(max(L))])\nS = 1\nfor i in range(2):\n S *= L[i]\n \nprint(S//2)\n', 'L = list(map(int, input().split()))\n\nL.pop(L[L.index(max(L))])\nS = 1\nfor i in range(2):\n S *= L[i]\n \nprint(S)\n', 'L = list(map(int, input().split()))\n\nL.remove(L[L.index(max(L))])\nS = 1\nfor i in range(2):\n S *= L[i]\n \nprint(S//2)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s312370591', 's776723887', 's278830150']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[115, 112, 118]
p03145
u152638361
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['Copy\na, b, c = map(int,input().split())\nprint(int(min(a*b/2,b*c/2,c*a/2)))', 'a, b, c = map(int,input().split())\nprint(min(a*b/2,b*c/2,c*a/2))', 'a, b, c = map(int,input().split())\nprint(int(min(a*b/2,b*c/2,c*a/2)))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s657415465', 's889378649', 's883131952']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[74, 64, 69]
p03145
u153419200
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)', 'a,b,c=map(int,input().split())\nprint(a*b//2)\n']
['Wrong Answer', 'Accepted']
['s062955353', 's453612481']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 45]
p03145
u154979004
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = sorted(map(int, input().split()))\nprint(a * b / 2)', 'a, b, c = map(int, input().split())\nprint(a * b // 2)']
['Wrong Answer', 'Accepted']
['s066215724', 's649553403']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 53]
p03145
u156383602
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)', 'a,b,c=map(int,input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s314905882', 's167008490']
[2940.0, 2940.0]
[17.0, 18.0]
[43, 48]
p03145
u157232135
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)', 'a,b,c=map(int,input().split())\nprint(a*b//2)']
['Wrong Answer', 'Accepted']
['s597144009', 's122762595']
[9056.0, 9068.0]
[28.0, 27.0]
[43, 44]
p03145
u157887852
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().split())\n\nprint(a*b/2)', 'a,b,c = map(int,input().split())\n\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s601998585', 's859423697']
[2940.0, 2940.0]
[17.0, 17.0]
[46, 51]
p03145
u158126367
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int, input().split())\nprint(a*b/2)', 'a,b,c = map(int, input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Accepted']
['s038881933', 's444212140']
[2940.0, 2940.0]
[17.0, 17.0]
[46, 51]
p03145
u158628538
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)\n', 'a,b,c=map(int,input().split())\nprint(int(a*b/2))\n']
['Wrong Answer', 'Accepted']
['s893430094', 's267501342']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 49]
p03145
u159994501
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c=map(int,input().split())\nprint(a*b/2)\n', 'a,b,c=map(int,input().split())\nprint(a*b)', 'a,b,c=map(int,input().split())\nprint(int(a*b/2))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s005252907', 's097349527', 's751481193']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[44, 41, 48]
p03145
u160244242
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['lst = list(map(int, input().split()))\nlst.sort()\nprint(lst[0]*lst[1]*1/2)', 'n, k = map(int, input().split())\na = sorted([tuple(map(int, input().split())) for _ in range(n)], key=lambda x:-x[1])\n \nans = 0\ns = set()\nq = []\n \nfor i in range(k):\n ans += a[i][1]\n if a[i][0] in s:\n q.append(a[i][1])\n s.add(a[i][0])\n \nans += len(s)**2\nk1 = k\nans1 = ans\n \n\nwhile k1 < n and q:\n if a[k1][0] not in s:\n ans1 = ans1+a[k1][1]-q.pop()-len(s)**2+(len(s)+1)**2\n ans = max(ans, ans1)\n s.add(a[k1][0])\n k1 += 1\n \nprint(ans)', 'lst = list(map(int, input().split()))\nlst.sort()\nprint(int(lst[0]*lst[1]*1/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s575535417', 's838610607', 's137489917']
[2940.0, 3064.0, 2940.0]
[18.0, 18.0, 18.0]
[73, 540, 78]
p03145
u160939083
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['c = int(input())\n\na = int(input())\n\nprint(int(a*c/2))', 'N = int(input())\n\nl_0 = list(map(int , input().split()))\n\nL = [l_0]\n\nm = None\n\ncount = 0\n\nwhile L != []:\n\tfor l in L:\n\t\tm = min(l)\n\t\tL.remove(l)\n\t\tfor i in range(len(l)):\n\t\t\tl[i] = l[i] - m\n\t\tcount += m\n\t\tl = " ".join( list(map(str , l)) )\n\t\tl = l.split("0")\n\t\tfor a in l:\n\t\t\tL.append(list(map(int, (a.split()))))\n\t\twhile [] in L:\n\t\t\tL.remove([])\n\n\nprint(count)', 'c, a, b= list(map(int,input().split()))\n\nprint(int(a*c/2))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s242274375', 's261802186', 's420918677']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[53, 361, 58]
p03145
u161201983
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().splid())\n\nhect = a*b*0.5\nprint(hect)', 'a,b,c = map(int,input().split())\n\nhect = int(a*b*0.5)\nprint(hect)']
['Runtime Error', 'Accepted']
['s153167171', 's181611689']
[2940.0, 2940.0]
[17.0, 20.0]
[60, 65]
p03145
u163308921
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b = map(int, input().split())\nprint(int(a*b*//2))', 'a,b = map(int, input().split())\nprint(int(a*b*0.5))', 'a,b = map(int, input().split())\ninput()\nprint(int(a+b/2))', 'a,b,c = map(int, input().split())\nprint(int(a*b*0.5))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s140440915', 's411501767', 's530616269', 's339319188']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[51, 51, 57, 53]
p03145
u163320134
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['arr=[j for j in input().split()]\narr=sorted(arr)\nprint(int(arr[0]*arr[1]/2))', 'arr=[j for j in input().split()]\narr=sorted(arr)\nprint(int(arr[0]*arr[1]/2)', 'a,b,c=map(int,input().split())\narr=[a,b,c]\narr=sorted(arr)\nprint(int(arr[0]*arr[1]/2))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s108240150', 's811537802', 's641852125']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[76, 75, 86]
p03145
u164261323
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input(),split())\nprint(a*b//2)\n', 'a,b,c = map(int,input(),split())\nprint(a*b/2)\n', 'a,b,c = map(int,input(),split())\nprint((a*b)/2)\n', 'a,b,c = map(int,input().split())\nprint(a*b//2)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s175540772', 's861315878', 's968019814', 's665415319']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[47, 46, 48, 47]
p03145
u164678731
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['# coding: utf-8\nab, bc, ca = map(int, input().split())\ns = ab * bc / 2\nprint(s)\n', '# coding: utf-8\nab, bc, ca = map(int, input().split())\ns = ab * bc / 2\nprint(int(s))\n']
['Wrong Answer', 'Accepted']
['s896556351', 's682741324']
[2940.0, 2940.0]
[17.0, 18.0]
[80, 85]
p03145
u165268875
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['|AB|, |BC|, |CB| = map(int, input().split())\nprint(|AB|*|BC|//2)', 'AB, BC, CB = map(int, input().split())\nprint(AB*BC//2)\n']
['Runtime Error', 'Accepted']
['s273688306', 's916224215']
[2940.0, 3060.0]
[17.0, 18.0]
[64, 55]
p03145
u165516759
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = list(map(int,input().split()))\nprint(a*b*1/2)', 'a,b,c = list(map(int,input().split()))\nprint(a*b*1//2)']
['Wrong Answer', 'Accepted']
['s725159285', 's138563389']
[2940.0, 2940.0]
[18.0, 18.0]
[53, 54]
p03145
u166621202
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB,BC,CA = map(int,input().split())\n\nprint(AB*BC/2)', 'AB,BC,CA = map(int,input().split())\n\nprint(round(AB*BC/2))\n']
['Wrong Answer', 'Accepted']
['s569216719', 's625680865']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 59]
p03145
u167523937
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['def calc_range_num(h,height,max_height,ans):\n for i in range(len(h)):\n if h[i]>=height and height != 0:\n if i+1<len(h) and h[i]>h[i+1] and h[i+1] <=height:\n \n ans+=1\n elif i==len(h)-1 and h[i]>height:\n ans+=1\n height+=1\n if height>max_height:\n return ans\n else:\n ans = calc_range_num(h,height,max_height,ans)\n return ans\n \nN = int(input())\nh = list(map(int, input().split()))\nmax_height=max(h)\nans=0\nprint(calc_range_num(h,1,max_height,ans))', 'AB,BC,CA = map(int, input().split())\nprint(int(AB*BC/2))']
['Runtime Error', 'Accepted']
['s519216319', 's735806260']
[3064.0, 2940.0]
[18.0, 18.0]
[664, 56]
p03145
u167908302
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['#coding:utf-8\na, b, c = map(int, input().split())\nprint((a * b)/2)', '#coding:utf-8\na, b, c = map(int, input().split())\nprint((a * b)//2)']
['Wrong Answer', 'Accepted']
['s544198858', 's782356523']
[2940.0, 2940.0]
[17.0, 18.0]
[66, 67]
p03145
u170201762
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['from itertools import accumulate\nN,K = map(int,input().split())\ntd = [tuple(map(int,input().split())) for i in range(N)]\n\ntd.sort(key=lambda x:-x[1])\ntd = [(x[0]-1,x[1]) for x in td]\nt = [-1]*N\nfor i in range(N):\n t[td[i][0]] = 0\nfor i in range(K):\n t[td[:K][i][0]] = 1\n\nt_used = [i for i in range(N) if t[i]==1]\nt_not_used = [i for i in range(N) if t[i]==0]\n\nd_top = [0]*N\nd_top_candi = [0]*N\nd_rest = []\nd_candi = []\n\nfor i in range(K):\n if t[td[i][0]] == 1:\n if d_top[td[i][0]] == 0:\n d_top[td[i][0]] = td[i][1]\n else:\n d_rest.append(td[i][1])\nfor i in range(K,N):\n if t[td[i][0]] == 0:\n if d_top_candi[td[i][0]] == 0:\n d_top_candi[td[i][0]] = 1\n d_candi.append(td[i][1])\n\nans = len(t_used)**2+sum(d_top)\nd_rest.sort()\nd_candi.sort(key=lambda x:-x)\n\nd_rest_cum = list(accumulate(d_rest))\nd_candi_cum = list(accumulate(d_candi))\nans += d_rest_cum[-1]\n\nfor k in range(min(len(d_rest),len(d_candi))):\n ans = max(ans + (k+1)*(k+1+2*len(t_used)) + d_candi_cum[k] - d_rest_cum[k],ans)\n\nprint(ans)', 'a,b,c = map(int,input().split())\nprint(a*b*c//2//max(a,b,c))']
['Runtime Error', 'Accepted']
['s917067683', 's290897098']
[3188.0, 2940.0]
[18.0, 18.0]
[1073, 60]
p03145
u170324846
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['L = [int(x) for x in input().split]\nL.sort()\nprint(L[1] * L[2] / 2)', 'L = [int(x) for x in input().split]\nL.sort()\nprint(L[1] * L[1])', 'L = [int(x) for x in input().split()]\nL.sort()\nprint(L[1] * L[2] // 2)', 'L = [int(x) for x in input().split]\nL.sort()\nprint(L[1] * L[1] / 2)', 'L = [int(x) for x in input().split()]\nL.sort()\nprint(L[1] * L[0] // 2)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s239629132', 's487794170', 's697367990', 's973151393', 's397869302']
[2940.0, 2940.0, 2940.0, 2940.0, 3068.0]
[18.0, 18.0, 18.0, 17.0, 18.0]
[67, 63, 70, 67, 70]
p03145
u172785970
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['x,y,z=map(int,input().split())\n\nans=x*y/2\n\nprint(ans)', 'x,y,z=map(int,input().split())\n\nans=x*y/2\n\nprint(int(k))', 'x,y,z=map(int,input().split())\n\nans=x*y/2\n\nprint(int(ans))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s259586385', 's789467132', 's257929837']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[53, 56, 58]
p03145
u174386515
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A, B, C = map(int, input().split)\n\nX = A * B / 2\nprint(X)', 'a, b, c = map(int, input().split())\n\nX = a * b / 2\nint(X)\nprint(X)', 'A, B, C = map(int, input().split)\n\n#X = A * B / 2\n\nX = A * B // 2\nprint(X)', 'a, b, c = map(int, input().split())\n\nX = a * b / 2\nprint(X)', 'a, b, c = map(int, input().split())\n\nX = a * b / 2\nint(X)\nprint(X)', 'A, B, C = map(int, input().split())\n\n#X = A * B / 2\n\nX = A * B // 2\nprint(X)\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s024699105', 's052046118', 's232949164', 's256172699', 's896046592', 's043050844']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 18.0]
[57, 66, 127, 59, 66, 130]
p03145
u175590965
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().split())\nprint(a*b/2)', "a,b,c = map(int,input().split('/'))\nprint(a*b/2)", 'a,b,c = map(int,input().split())\nprint(a*b//2)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s570245388', 's647899042', 's859468686']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[45, 48, 46]
p03145
u178192749
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int,input().split())\nprint(ab*bc/2)', 'ab,bc,ca = map(int,input().split())\nprint(ab*bc//2)\n']
['Wrong Answer', 'Accepted']
['s386644720', 's931432689']
[2940.0, 2940.0]
[17.0, 17.0]
[50, 52]
p03145
u179169725
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A=map(int,input().split())\nA.sort()\nprint(A[0]*A[1]//2)\n\n', 'A=list(map(int,input().split()))\nA.sort()\nprint(A[1]*A[2]//2)\n\n', 'A=map(int,input().split())\nA.sort()\nprint(A[1]*A[2]//2)\n\n', 'A=list(map(int,input().split()))\nA.sort()\nprint(A[0]*A[1]//2)\n\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s320830625', 's529748743', 's601543511', 's562303035']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0, 17.0]
[57, 63, 57, 63]
p03145
u181215519
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC = map( int, input().split() )\nprint( ( AB * BC ) // 2 )', 'AB, BC = map( int, input().split() )\nprint( AB * BC // 2 )', 'AB, BC, CA = map( int, input().split() )\nprint( ( AB * BC ) // 2 )']
['Runtime Error', 'Runtime Error', 'Accepted']
['s354542084', 's428325957', 's990313116']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[62, 58, 66]
p03145
u181526702
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['from itertools import groupby\nfrom heapq import heapify, heappop\n\nN, K = map(int, input().split())\nsushi = [tuple(map(int, input().split())) for _ in range(N)]\n\nsrt = sorted(sushi, key=lambda x: x[1], reverse=True)\neat, non_eat = srt[:K], srt[K:]\n\nmaxs = []\nrems = []\nkinds = set()\nfor k, g in groupby(sorted(eat, key=lambda x: x[0]), key=lambda x: x[0]):\n d = list(list(zip(*g))[1])\n maxs.append(d.pop(0))\n rems.extend(d)\n kinds.add(k)\nheapify(rems)\nans = sum(maxs) + sum(rems) + len(kinds)**2\n\nfor k, g in groupby(sorted(non_eat, key=lambda x: x[0]), key=lambda x: x[0]):\n if k in kinds:\n continue\n if not rems:\n break\n d = list(list(zip(*g))[1])\n maxs.append(d.pop(0))\n heappop(rems)\n kinds.add(k)\n ans = max(ans, sum(maxs) + sum(rems) + len(kinds)**2)\n\nprint(ans)\n', 'a,b,c = map(int, input().split())\n\nprint(a*b//2)']
['Runtime Error', 'Accepted']
['s005732788', 's296931823']
[3064.0, 2940.0]
[18.0, 17.0]
[815, 48]
p03145
u183200783
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['AB, BC, CA = map(int, input().split())\n\nprint((BC*AB)/2)\n', 'AB, BC, CA = map(int, input().split())\n\nprint((BC*AB)/2)', 'AB, BC, CA = map(int, input().split())\n\nprint(int((BC*AB)/2))\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s606463325', 's659155940', 's040450915']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[57, 56, 62]
p03145
u183509493
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = map(int,input().split())\nprint(a*b/2)', 'n = int(input())\nh = list(map(int,input().split()))\nans = 0\nfor _ in range(100):\n streak = False\n for i in range(n):\n if h[i] > 0:\n h[i] -= 1\n if streak:\n pass\n else:\n ans += 1\n streak = True\n else:\n streak = False\nprint(ans)\n', 'a,b,c = map(int,input().split())\nprint(a*b//2)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s572510416', 's936267859', 's940065889']
[3316.0, 3060.0, 3064.0]
[21.0, 18.0, 17.0]
[45, 275, 46]
p03145
u183840468
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l = sorted([int(i) for i in input().split()])\nprint(l[0]*l[1])', 'l = sorted([int(i) for i in input().split()])\nprint((l[0]*l[1])//2)\n\n']
['Wrong Answer', 'Accepted']
['s992071465', 's054070593']
[2940.0, 2940.0]
[18.0, 18.0]
[62, 69]
p03145
u187516587
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['N=int(input())\nh=list(map(int,input().split()))\nt=[0]*N\na=0\nfor i in range(N):\n while t[i]<h[i]:\n for j in range(i,N):\n if t[j]<h[j]:\n t[j]+=1\n else:\n break\n a+=1\nprint(a)', 'a,b,c=map(int,input().split())\nprint(a*b//2)']
['Runtime Error', 'Accepted']
['s757105340', 's213402460']
[3060.0, 2940.0]
[17.0, 18.0]
[316, 44]
p03145
u188366988
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['# import sys\n# \n# a = sys.argv[0]\n# b = sys.argv[1]\n# c = sys.argv[2]\nd = input().split()\na = d[0]\nb = d[1]\n\nprint(int(a)*int(b))\n', '# import sys\n# \n# a = sys.argv[0]\n# b = sys.argv[1]\n# c = sys.argv[2]\nd = input().split()\na = d[0]\nb = d[1]\n\nprint(int(int(a)*int(b)/2))\n']
['Wrong Answer', 'Accepted']
['s495073163', 's430025135']
[2940.0, 3060.0]
[18.0, 19.0]
[130, 137]
p03145
u189188797
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l,n,m=map(int,input().split())\nprint(l*m/2)', 'l,n,m=map(int,input().split())\nprint(l*n/2)', 'l,n,m=map(int,input().split())\nprint(int(l*n/2))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s767635302', 's993079011', 's206957342']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[43, 43, 48]
p03145
u189487046
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int,input().split())\nprint((ab*bc)/2)\n', "ab,bc,ca = map(int,input().split())\nprint('{0:.0f}'.format((ab*bc)/2))\n"]
['Wrong Answer', 'Accepted']
['s620574696', 's838843916']
[3064.0, 2940.0]
[18.0, 17.0]
[53, 71]
p03145
u190406011
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab, bc, ab = [int(i) for i in input().split()]\nprint(ab * bc / 2)', 'ab, bc, ac = [int(i) for i in input().split()]\nprint(ab * bc // 2)']
['Wrong Answer', 'Accepted']
['s685317567', 's787705908']
[3188.0, 2940.0]
[19.0, 18.0]
[65, 66]
p03145
u192588826
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int,input().split())\nprint(ab*bc/2)', 'ab,bc,ca = map(int,input().split())\nprint(int(ab*bc/2))\n']
['Wrong Answer', 'Accepted']
['s915296614', 's574992787']
[2940.0, 2940.0]
[18.0, 17.0]
[50, 56]
p03145
u192908410
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a,b,c = list(map(int, input().split()))\nprint(a*b/2)', 'a,b,c = list(map(int, input().split()))\nprint(a*b//2)']
['Wrong Answer', 'Accepted']
['s113371473', 's372027743']
[9148.0, 8964.0]
[33.0, 29.0]
[52, 53]
p03145
u197045432
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l = list(map(int, input().split()))\nlen=sorted(l)\nprint(len[0]*len[1]/2)', 'l = list(map(int, input().split()))\nlen=sorted(l)\nprint(len[1]*len[0]/2)', 'len=input().split\nsorted(len, reverse=True)\nprint(len[0]*len[1]/2)', 'l = list(map(int, input().split()))\nlen=sort(l)\nprint(len[1]*len[2])', 'l = list(map(int, input().split()))\nlen=sorted(l)\nprint(int(len[1]*len[0]/2))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s176986540', 's552828017', 's605004345', 's897621586', 's913099867']
[3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[20.0, 18.0, 18.0, 18.0, 18.0]
[72, 72, 66, 68, 77]
p03145
u198062737
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l = [int(s) for s in input().split(" ")]\nl.sort()\nprint(l[0] * l[1])', 'a, b, c = map(int, input().split(" "))\nprint(int(a * b / 2))']
['Wrong Answer', 'Accepted']
['s512302729', 's241509012']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 60]
p03145
u201082459
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab,bc,ca = map(int,input().split())\nprint((ab * bc) / 2)', 'ab,bc,ca = map(int,input().split())\nprint(int((ab * bc) / 2))']
['Wrong Answer', 'Accepted']
['s897106493', 's642011143']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 61]
p03145
u201856486
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['a, b, c = map(int, input().split())\nprint(a * b / 2)', 'import sys\n\n\n\n\ninput = sys.stdin.readline\n\n\ndef intline():\n return list(map(int, input().split()))\n\n\n\ndef strline():\n return list(map(str, input().split()))\n\n\n\ndef intlines(n):\n return [int(input() for _ in range(n))]\n\n\n\ndef lines(n):\n return [input() for _ in range(n)]\n \n\n\nclass UnionFind:\n def __init__(self, n):\n self.par = [i for i in range(n+1)]\n self.rank = [0] * (n+1)\n\n \n def find(self, x):\n if self.par[x] == x:\n return x\n else:\n self.par[x] = self.find(self.par[x])\n return self.par[x]\n\n \n def union(self, x, y):\n x = self.find(x)\n y = self.find(y)\n if self.rank[x] < self.rank[y]:\n self.par[x] = y\n else:\n self.par[y] = x\n if self.rank[x] == self.rank[y]:\n self.rank[x] += 1\n\n \n def same_check(self, x, y):\n return self.find(x) == self.find(y)\n\n\n\nclass WeightedUnionFind:\n def __init__(self, n):\n self.par = [i for i in range(n+1)]\n self.rank = [0] * (n+1)\n \n self.weight = [0] * (n+1)\n\n \n def find(self, x):\n if self.par[x] == x:\n return x\n else:\n y = self.find(self.par[x])\n \n self.weight[x] += self.weight[self.par[x]]\n self.par[x] = y\n return y\n\n \n def union(self, x, y, w):\n rx = self.find(x)\n ry = self.find(y)\n \n if self.rank[rx] < self.rank[ry]:\n self.par[rx] = ry\n self.weight[rx] = w - self.weight[x] + self.weight[y]\n \n else:\n self.par[ry] = rx\n self.weight[ry] = -w - self.weight[y] + self.weight[x]\n \n if self.rank[rx] == self.rank[ry]:\n self.rank[rx] += 1\n\n \n def same(self, x, y):\n return self.find(x) == self.find(y)\n\n \n def diff(self, x, y):\n return self.weight[x] - self.weight[y]\n\n\n\n\n\n\n\na, b, _ = intline()\nprint(a * b // 2)\n']
['Wrong Answer', 'Accepted']
['s732333314', 's759332571']
[2940.0, 3192.0]
[17.0, 19.0]
[52, 2671]
p03145
u202570162
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['l = [int(i) for i in input().split()]\n\nprint(l[0]*l[1]/2)\n', 'l = [int(i) for i in input().split()]\n\nprint(int(l[0]*l[1]/2))\n']
['Wrong Answer', 'Accepted']
['s280245161', 's805922802']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 63]
p03145
u203886313
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['ab, bc, ca = map(int, input().split());\nprint((bc*ab)/2)', 'ab, bc, ca = map(int, input().split());\nprint(int((bc*ab)/2))']
['Wrong Answer', 'Accepted']
['s094174264', 's985740933']
[2940.0, 2940.0]
[17.0, 18.0]
[56, 61]
p03145
u204260373
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['|ab|,|bc|,|ca|=map(int,input().split())\nprint((|ab|*|bc|)//2)', 'a,b,c=map(int,input().split())\n\nprint((a*b)//2)']
['Runtime Error', 'Accepted']
['s394201155', 's611510977']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 47]
p03145
u207745024
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
["# -*- coding: utf-8 -*-\n\n\nif __name__ == '__main__':\n \n b, c = map(int, input().split())\n # b, c = map(int, input().split())\n print(b * c / 2.0)\n", "# -*- coding: utf-8 -*-\n\n\nif __name__ == '__main__':\n \n b, c, d = map(int, input().split())\n # b, c = map(int, input().split())\n print(int(b * c / 2.0))\n"]
['Runtime Error', 'Accepted']
['s443563379', 's768261931']
[2940.0, 2940.0]
[17.0, 17.0]
[198, 206]
p03145
u207747871
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['inline = list(map(int,input().split()))\nsortinline = sorted(inline)\nans = sortinline[0] * sortinline[1] * 0.5\nprint(ans)\n\n', 'inline = list(map(int,input().split()))\nsortinline = sorted(inline)\nans = sortinline[0] * sortinline[1] * 0.5\nprint(int(ans))']
['Wrong Answer', 'Accepted']
['s034459891', 's526379338']
[2940.0, 2940.0]
[17.0, 18.0]
[122, 125]
p03145
u207799478
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['A, B, C = map(int, input().split())\nprint((A*B)/2)\n', 'A, B, C = map(int, input().split())\nprint(int((A*B)/2))\n']
['Wrong Answer', 'Accepted']
['s378575888', 's381428811']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 56]
p03145
u209773899
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
['tmp = input().split(" ")\nprint(int(tmp[0])*int(tmp[1])/2)', 'tmp = input().split(" ")\nprint(int(int(tmp[0])*int(tmp[1])/2))']
['Wrong Answer', 'Accepted']
['s671106242', 's153242386']
[2940.0, 2940.0]
[18.0, 18.0]
[57, 62]
p03145
u210440747
2,000
1,048,576
There is a right triangle ABC with ∠ABC=90°. Given the lengths of the three sides, |AB|,|BC| and |CA|, find the area of the right triangle ABC. It is guaranteed that the area of the triangle ABC is an integer.
["#!/usr/bin/env python3\n# -*- coding:utf-8 -*-\n\nif __name__=='__main__':\n li = [int(x) for x in input().split()]\n li.sort()\n print(li[0]*li[1]/2)", "#!/usr/bin/env python3\n# -*- coding:utf-8 -*-\n\nif __name__=='__main__':\n li = [int(x) for x in input().split()]\n li.sort()\n print(int(li[0]*li[1]/2))"]
['Wrong Answer', 'Accepted']
['s040994236', 's936796318']
[2940.0, 2940.0]
[18.0, 17.0]
[147, 152]