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
u865413330
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']
['s085247909', 's113701267']
[2940.0, 2940.0]
[18.0, 26.0]
[53, 58]
p03145
u866769581
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())\n\nprint(c*a/2)\n', 'c,a,b = map(int,inpput().split())\n\nprint(c*a/2)', 'c,a,b = map(int,input().split())\n\nprint(int((c*a)/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s252863381', 's847483387', 's615279317']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[47, 47, 53]
p03145
u867826040
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']
['s418088091', 's669248944']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 48]
p03145
u867848444
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']
['s229945372', 's311429401', 's857041768']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[45, 43, 48]
p03145
u868040597
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/python\n\ndef main():\n a, b, c = [int(x) for x in input().split()]\n print(a * b / 2)\n\nif __name__ == "__main__":\n main()', '#!/usr/bin/python\n\ndef main():\n a, b, c = [int(x) for x in input().split()]\n print(a * b // 2)\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s141589065', 's732345260']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 139]
p03145
u868628468
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']
['s821270244', 's705363806']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 53]
p03145
u869937227
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())\nprint(x * y / 2)', 'x,y,z = map(int,input().split())\nprint(int(x * y / 2))']
['Wrong Answer', 'Accepted']
['s876081396', 's671258572']
[2940.0, 2940.0]
[19.0, 17.0]
[49, 54]
p03145
u870518235
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())\n\nprint((a*c)/2)', 'c, a, b = map(int, input().split())\nprint(int((a*c)/2))']
['Wrong Answer', 'Accepted']
['s164894574', 's395757630']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 55]
p03145
u872030436
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 = [0 for i in range(3 * 1000000 + 1)]\n\ns = int(input().rstrip())\n\na[s] = 1\n\nfor i in range(2, 1000000+1):\n if s % 2 == 0:\n s = int(s / 2)\n else:\n s = int(3 * s + 1)\n #print(s)\n \n if a[s] == 1:\n break\n a[s] = 1\n \nprint(i)', 'AB,BC,CA = map(int, input().split())\n\nprint(int(AB * BC / 2))']
['Runtime Error', 'Accepted']
['s813106426', 's348496109']
[27544.0, 2940.0]
[141.0, 18.0]
[268, 61]
p03145
u879266613
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\nprint(l[0]*l[1]/2)', 'l = list(map(int,input().split()))\n\nprint(int(l[0]*l[1]/2))']
['Wrong Answer', 'Accepted']
['s660746782', 's649727301']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 59]
p03145
u879870653
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,M = map(int,input().split())\n\nprint(int(A*B/2))\n', 'a,b,c=list(map(int,input().split()))\nprint(a*b//2)\n']
['Runtime Error', 'Accepted']
['s879799548', 's219207735']
[3316.0, 2940.0]
[19.0, 18.0]
[50, 51]
p03145
u881730038
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']
['s240326272', 's347214377']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 58]
p03145
u882359130
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 = [int(abc) for abc in input().split()]\nprint(AB*BC/2)', 'AB, BC, CA = [int(abc) for abc in input().split()]\nprint(int(AB*BC/2))']
['Wrong Answer', 'Accepted']
['s963750280', 's224998692']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 70]
p03145
u883792993
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.sort()\nprint(int(0.5)*l[0]*l[1])', ' l=list(map(int,input().split()))\n l.sort()\n print(int(0.5*l[0]*l[1]))', 'l=list(map(int,input().split()))\nl.sort()\nprint(int(0.5*l[0]*l[1]))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s013985991', 's353767608', 's445084620']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 21.0]
[67, 79, 67]
p03145
u886902015
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']
['s274218747', 's974579914']
[9020.0, 9016.0]
[26.0, 26.0]
[43, 44]
p03145
u887152994
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(rount(0.5*a*b))', 'a,b,c = map(int,input().split())\nprint(0.5*a*b)', 'a,b,c = map(int,input().split())\nprint(int(0.5*a*b))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s077049087', 's594662103', 's403963335']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[54, 47, 52]
p03145
u888610038
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']
['s781003318', 's291629952']
[2940.0, 2940.0]
[17.0, 18.0]
[43, 46]
p03145
u889914341
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())\ns = (a + b + c) / 2\nprint((s * (s - a) * (s - b) * (s - c)) ** 0.5)', 'a, b, c = map(int, input().split())\ns = (a + b + c) / 2\nprint(int((s * (s - a) * (s - b) * (s - c)) ** 0.5))']
['Wrong Answer', 'Accepted']
['s393441814', 's645574766']
[3060.0, 3060.0]
[17.0, 17.0]
[103, 108]
p03145
u894694822
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.sort()\nprint(l[0]*l[1]/2)', 'l=list(map(int, input().split()))\nl.sort()\nprint(int(l[0]*l[1]/2))']
['Wrong Answer', 'Accepted']
['s555293977', 's334848998']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 66]
p03145
u896775745
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(int(AB + BC + CA) / 2))', 'AB, BC, CA = map(int, input().split())\n\nprint((AB + BC + CA) / 2)', 'import math\n\nAB, BC, CA = map(int, input().split())\ns = (AB + BC + CA) / 2\n\nprint(int(math.sqrt(s* (s - AB) * (s - BC) * (s - CA))))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s116440397', 's937952512', 's181097236']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[69, 65, 132]
p03145
u898967808
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 = list(map(int,input().split())\na = sorted(a)\nprint(a[0]*a[1]/2)', 'a = list(map(int,input().split()))\na = sorted(a)\nprint(int(a[0]*a[1]/2))']
['Runtime Error', 'Accepted']
['s902826113', 's634983632']
[2940.0, 2940.0]
[19.0, 17.0]
[66, 72]
p03145
u901122076
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)\n', 'AB, BC, CA = map(int, input().split())\n\nprint(AB * BC // 2)\n']
['Wrong Answer', 'Accepted']
['s024391674', 's988519362']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 60]
p03145
u901598613
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()))\nl.sort()\nprint(l[0]*l[1]/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', 'Wrong Answer', 'Accepted']
['s013613014', 's150019203', 's763567991', 's196665785']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[51, 60, 43, 48]
p03145
u902973687
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 math\nV = [int(n) for n in input().split()]\ns = sum(V) / 2\nA = math.sqrt(s*(s-V[0])*(s-V[1])*(s-V[2]))\nprint(A)', 'a, b, c = map(int, input().split())\nprint(a * b // 2)\n']
['Wrong Answer', 'Accepted']
['s368263689', 's822002411']
[2940.0, 2940.0]
[18.0, 17.0]
[117, 54]
p03145
u903948194
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())\nS = int(AB * BC /2)\nprint(S)']
['Wrong Answer', 'Accepted']
['s822505205', 's946604707']
[2940.0, 2940.0]
[18.0, 18.0]
[56, 67]
p03145
u904804404
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,_ = list(map(int,input().split(" ")))\nprint(A*B/2)', 'A,B,_ = list(map(int,input().split(" ")))\nprint(int(A*B/2))']
['Wrong Answer', 'Accepted']
['s373239046', 's243474296']
[3060.0, 2940.0]
[20.0, 18.0]
[54, 59]
p03145
u904943473
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']
['s392039135', 's270599785']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 54]
p03145
u904995051
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)', 'x,y,z = map(int,input().split())\nprint(int(x*y*0.5))']
['Wrong Answer', 'Accepted']
['s073871104', 's803755693']
[2940.0, 9044.0]
[17.0, 27.0]
[45, 52]
p03145
u905802918
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']
['Wrong Answer', 'Accepted']
['s248692018', 's270282422']
[2940.0, 2940.0]
[18.0, 18.0]
[46, 47]
p03145
u907997483
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.
['h, w, n = map(int, input().split())\n\nprint(h*w/2)', 'h, w, n = map(int, input().split())\n\nprint(int(h*w/2))']
['Wrong Answer', 'Accepted']
['s808805273', 's762729488']
[2940.0, 2940.0]
[17.0, 18.0]
[49, 54]
p03145
u910295650
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']
['s850952403', 's866939717']
[2940.0, 2940.0]
[19.0, 17.0]
[44, 49]
p03145
u910358825
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 math\na,b,c=map(int, input().split())\nprint(int(math.sqrt(a**2+b**2)))', 'a,b,c=map(int, input().split())\nprint(a*b//2)']
['Wrong Answer', 'Accepted']
['s428430069', 's389809768']
[9188.0, 9152.0]
[24.0, 24.0]
[76, 45]
p03145
u914797917
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\nif max(A,B,C)==A:\n print(B*C/2)\nelif max(A,B,C)==B:\n print(A*C/2)\nelif max(A,B,C)==C:\n print(A*B/2)\n \n \n ', 'A,B,C = map(int,input().split())\n\nif max(A,B,C)==A:\n print(int(B*C/2))\nelif max(A,B,C)==B:\n print(int(A*C/2))\nelif max(A,B,C)==C:\n print(int(A*B/2))\n \n \n ']
['Wrong Answer', 'Accepted']
['s570287173', 's953626801']
[2940.0, 3060.0]
[17.0, 18.0]
[145, 160]
p03145
u919633157
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(a*b//2)']
['Wrong Answer', 'Accepted']
['s659478881', 's603497938']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 44]
p03145
u921249617
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)\n', 'ab, bc, _ = map(int, input().split())\nprint(ab * bc // 2)\n']
['Wrong Answer', 'Accepted']
['s464262843', 's767997053']
[2940.0, 2940.0]
[18.0, 18.0]
[57, 58]
p03145
u921632705
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())\nprint(x*y/2)', 'x, y, z = map(int, input().split())\nprint(x*y//2)']
['Wrong Answer', 'Accepted']
['s313606449', 's043550227']
[8984.0, 9020.0]
[28.0, 31.0]
[48, 49]
p03145
u923504061
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 = input()\nAB = line.split()[0]\nBC = line.split()[1]\n\nrange = int(AB)*int(BC)/2\n \nprint (range)\n\n', 'line = input()\nAB = line.split()[0]\nBC = line.split()[1]\n\nrange = int(AB)*int(BC)/2\n \nprint (int(range))']
['Wrong Answer', 'Accepted']
['s606492146', 's308642168']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 105]
p03145
u923561222
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())\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)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s459460783', 's720907157', 's142899150']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[35, 43, 44]
p03145
u923712635
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)', 'from operator import itemgetter\n\ndef inpl(): return [int(i) for i in input().split()]\n\nN,K = inpl()\nd = {}\nans = 0\nn0 = []\nn1 = []\n\nfor i in range(N):\n ti,di = inpl()\n if (ti in d.keys()):\n d[ti].append(di)\n else:\n d[ti] = [di]\n\nfor i in d.keys():\n sortedd = sorted(d[i],reverse = True)\n n1.append(sortedd[0])\n n0 += sortedd[1:]\n\nn0.sort(reverse = True)\nn1.sort(reverse = True)\n\nfor i in range(K+1):\n if(K-i <= len(n0) and 0<=K-i):\n total = sum(n1[:i])+sum(n0[:K-i])+(i)**2\n if(ans<total):\n ans = total\n\nprint(ans)\n', 'AB,BC,CA = map(int,input().split())\nprint(int(AB*BC/2))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s222210786', 's396984752', 's000802143']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[50, 575, 56]
p03145
u927282564
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(int(a*b/2.0))\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s580568385', 's660710642', 's942447085']
[3188.0, 2940.0, 2940.0]
[19.0, 18.0, 19.0]
[41, 44, 51]
p03145
u931118906
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']
['s235087765', 's152393486']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 48]
p03145
u931636178
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 = sported(list(map(int,input().split())))\nprint(int(A*B*0.5))', 'sides = list(map(int,input().split()))\ns1,s2 = sorted(sides)[:2]\nprint(int(s1*s2/2))']
['Runtime Error', 'Accepted']
['s693314886', 's567531776']
[2940.0, 2940.0]
[20.0, 18.0]
[67, 84]
p03145
u933214067
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 statistics import mean, median,variance,stdev\nimport sys\nimport math\nimport fractions\n\ndef j(q):\n if q==1: print("YES")\n else:print("NO")\n exit(0)\n\n\ndef ct(x,y):\n if (x>y):print("")\n elif (x<y): print("")\n else: print("")\n\ndef ip():\n return int(input())\n\n\n\nx,y,z = (int(i) for i in input().split()) \n\n\n\n\n\n\n\n\nprint(x*y/2)', 'from statistics import mean, median,variance,stdev\nimport sys\nimport math\nimport fractions\n\ndef j(q):\n if q==1: print("YES")\n else:print("NO")\n exit(0)\n\n\ndef ct(x,y):\n if (x>y):print("")\n elif (x<y): print("")\n else: print("")\n\ndef ip():\n return int(input())\n\n\n\nx,y,z = (int(i) for i in input().split()) \n\n\n\n\n\n\n\n\nprint(x*y//2)']
['Wrong Answer', 'Accepted']
['s337020049', 's074079245']
[5784.0, 5400.0]
[53.0, 39.0]
[794, 795]
p03145
u937238023
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(map,input().split())\nprint((l[0]*l[1])//2)', 'l = sorted(map(int,input().split()))\nprint((l[0]*l[1])//2)']
['Runtime Error', 'Accepted']
['s236933505', 's253572216']
[8976.0, 9068.0]
[25.0, 28.0]
[53, 58]
p03145
u941438707
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()))\nsum=0\nfor i in range(max(h)):\n if 0 not in h:\n h=[i-1 if i>0 else 0 for i in h]\n sum+=1\n # print(h,1)\n else:\n count0=[i for i, j in enumerate(h) if j==0]\n a=count0.copy() \n b=count0.copy()\n a.pop(0)\n b.pop(-1)\n c=[x-y for(x,y) in zip(a,b)]\n sum = sum + len(c)-c.count(1)\n # print(count0)\n if count0[0]>0 and count0[-1]<n-1:\n sum +=2\n # print(1)\n elif count0[0]>0 or count0[-1]<n-1:\n sum +=1\n # print(2)\n else:\n sum +=0\n h=[i-1 if i>0 else 0 for i in h]\n # print(h,2)\nprint(sum) \n ', 'a,b,c=sorted(map(int, input().split()))\nprint(a*b//2)\n']
['Runtime Error', 'Accepted']
['s911162781', 's817728484']
[3064.0, 2940.0]
[17.0, 20.0]
[825, 54]
p03145
u943057856
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']
['s007858734', 's962381627']
[3060.0, 2940.0]
[17.0, 17.0]
[43, 48]
p03145
u944404180
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())\nAB,BC,CA = map(int,input().split())\nprint(AB,BC,CA)\nprint((AB*BC)//2)\n\n', '#A,B,C = map(int,input().split())\nAB,BC,CA = map(int,input().split())\n#print(AB,BC,CA)\nprint((AB*BC)//2)\n\n']
['Wrong Answer', 'Accepted']
['s620286586', 's548192251']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 122]
p03145
u945181840
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']
['s837967925', 's272931737']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 58]
p03145
u945761460
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.sort()\nprint(l[0]*l[1]/2)', 'l=list(map(int, input().split()))\nl.sort()\nprint(l[0]*l[1]//2)\n']
['Wrong Answer', 'Accepted']
['s634032195', 's520549300']
[9064.0, 9152.0]
[32.0, 29.0]
[61, 63]
p03145
u946424121
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))']
['Wrong Answer', 'Accepted']
['s531129601', 's151120477']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 53]
p03145
u946969297
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']
['s229320911', 's132715099']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 46]
p03145
u947327691
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']
['s209197791', 's040379752']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 49]
p03145
u949346038
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))']
['Wrong Answer', 'Accepted']
['s202311558', 's758242403']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 49]
p03145
u950708010
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 = sorted(list(int(i) for i in input().split()))\nprint(a[0]*a[1]/2)', 'a = sorted(list(int(i) for i in input().split()))\nprint(a[0]*a[1]//2)']
['Wrong Answer', 'Accepted']
['s706684670', 's777031326']
[3316.0, 2940.0]
[21.0, 18.0]
[68, 69]
p03145
u951492009
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.
['data = input().split()\nans = (int(data[0]) * int(data[1]))* (1/2)\nprint(ans)\n', 'data = input().split()\nans = (int(data[0]) * int(data[1]))* (1/2)\nprint(int(ans))\n']
['Wrong Answer', 'Accepted']
['s188239272', 's100211250']
[2940.0, 2940.0]
[18.0, 17.0]
[77, 82]
p03145
u951601135
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.
['b=list(map(str,input()))\nwhile "|" in b :\n b.remove("|")\nwhile " " in b :\n b.remove(" ")\nc=list(map(int, b))\nprint(c)\n\n#a_new =\nd=sorted(c)\nprint(int(d[0]*d[1]/2))', 'c=list(map(int,input().split()))\nprint(c[0]*c[1]//2)']
['Wrong Answer', 'Accepted']
['s865956567', 's164583591']
[3060.0, 2940.0]
[18.0, 18.0]
[169, 52]
p03145
u956194864
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())\narea = ab * bc / 2\nprint(area)', 'ab, bc, ca = map(int, raw_input().split())\narea = ab * bc / 2\nprint(area)', 'ab, bc, ca = map(int, input().split())\narea = int(ab * bc / 2)\nprint(area)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s258985178', 's709454458', 's938945835']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[69, 73, 75]
p03145
u957198490
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']
['s263943049', 's048025114']
[2940.0, 2940.0]
[17.0, 18.0]
[45, 52]
p03145
u957872856
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']
['s552399221', 's759298427']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 54]
p03145
u959651981
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.
['p,q = map(int,input().split())\nprint(p * q / 2)', 'p,q,r=map(int,input().split())\nprint(p*q//2)']
['Runtime Error', 'Accepted']
['s375430816', 's591026698']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 44]
p03145
u960171798
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', 'length = list(map(int, input().split()))\nprint(length[0]*length[1]/2)', 'AB,BC,CA = map(int, input().split())\nprint(AB*BC/2)', 'length = list(map(int, input().split()))\nprint(int(length[0]*length[1]/2))\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s424564696', 's801155336', 's954935820', 's568957432']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 18.0]
[58, 69, 51, 75]
p03145
u960570220
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 = int(input())\n\nprint((AB * BC) // 2)\n', 'ab, bc, ca = int(input())\n\nprint((ab * bc) // 2)', 'AB, BC, CA = map(int, input().split())\n\nprint((AB * BC) // 2)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s114139853', 's832290059', 's162814365']
[9076.0, 9040.0, 9056.0]
[24.0, 23.0, 29.0]
[49, 48, 61]
p03145
u962942039
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)']
['Wrong Answer', 'Accepted']
['s390779629', 's696368347']
[2940.0, 2940.0]
[17.0, 18.0]
[53, 54]
p03145
u965033073
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)', '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', 'Wrong Answer', 'Accepted']
['s102288032', 's368064082', 's341931381']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[41, 43, 49]
p03145
u969190727
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']
['s268736277', 's719677170']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 48]
p03145
u969211566
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']
['s496948129', 's919375651']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 56]
p03145
u969848070
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())\nif a**2+b**2 ==c**2:\n print(a*b/2)\nelif b**2 + c**2 ==a**2:\n print(b*c/2)\nelse:\n print(c*a/2)', 'a, b, c =map(int,input().split())\nif a**2+b**2 ==c**2:\n print(a*b//2)\nelif b**2 + c**2 ==a**2:\n print(b*c//2)\nelse:\n print(c*a//2)\n']
['Wrong Answer', 'Accepted']
['s934177416', 's680182776']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 134]
p03145
u970197315
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']
['s171735434', 's604318817']
[2940.0, 2940.0]
[18.0, 17.0]
[47, 52]
p03145
u970937288
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.
['p = input().split()\nk = []\nfor i in p:\n k.append(int(i))\nk.sort()\nprint(k[0]*k[1]/2)', 'p = input().split()\nk = []\nfor i in p:\n k.append(int(i))\nk.sort()\nprint(int(k[0]*k[1]/2))']
['Wrong Answer', 'Accepted']
['s224316745', 's426234976']
[2940.0, 2940.0]
[18.0, 18.0]
[85, 90]
p03145
u972658925
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(0.5*a*b)', 'a,b,c = map(int,input().split())\nprint(int(0.5*a*b))']
['Wrong Answer', 'Accepted']
['s704581267', 's340019627']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 52]
p03145
u972892985
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']
['s507145998', 's183859659']
[2940.0, 2940.0]
[18.0, 17.0]
[53, 54]
p03145
u973108807
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 * ac // 2)', 'ab,bc,ca = map(int,input().split())\nprint(ab * bc // 2)']
['Runtime Error', 'Accepted']
['s624300775', 's845272561']
[2940.0, 3064.0]
[17.0, 18.0]
[55, 55]
p03145
u978769341
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']
['s900722006', 's146689641']
[2940.0, 2940.0]
[18.0, 18.0]
[53, 58]
p03145
u979362546
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())\nans = (x*y)/2\nprint(ans)', 'x,y,z = map(int, input().split())\nans = x*y*0.5\nprint(ans)', 'x,y,z = map(int, input().split())\nans = x*y/2\nprint(ans)', 'x, y, z = map(int, input().split())\nans = x*y//2\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s010403383', 's890046584', 's952907610', 's245247284']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 21.0]
[58, 58, 56, 59]
p03145
u980492406
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.
['numbers = input().split()\nnumbers.sort()\na = int(numbers[0])\nb = int(numbers[1])\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']
['s874214812', 's955260553', 's798118443']
[2940.0, 2940.0, 3064.0]
[19.0, 17.0, 17.0]
[93, 45, 50]
p03145
u981449436
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']
['s997161564', 's535109303']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 48]
p03145
u981931040
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)', 'ab, bc ,_ = map(int,input().split())\nprint(ab * bc // 2)']
['Wrong Answer', 'Accepted']
['s633001825', 's389227617']
[2940.0, 2940.0]
[17.0, 17.0]
[53, 56]
p03145
u982198202
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.
['l1, l2, l3 = map(int,input().split())\nprint(l1 * l2 / 2)', 'l1, l2, l3 = map(int,input().split())\nprint(int(l1 * l2 / 2))']
['Wrong Answer', 'Accepted']
['s418990470', 's850508958']
[3060.0, 2940.0]
[17.0, 17.0]
[56, 61]
p03145
u984276646
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']
['s151335042', 's836903240']
[2940.0, 2940.0]
[18.0, 17.0]
[58, 59]
p03145
u987637902
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.
['# ABC116\n# A Right Triangle\nL = list(map(int, input().split()))\nL = sorted(L)\nprint(L[0]*L[1]/2)\n', '# ABC116\n# A Right Triangle\nL = list(map(int, input().split()))\nL = sorted(L)\nprint(int(L[0]*L[1]/2))\n']
['Wrong Answer', 'Accepted']
['s029542251', 's042709081']
[8984.0, 9136.0]
[28.0, 28.0]
[97, 102]
p03145
u989326345
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())\nS=0\nif A>B and A>C:\n S=B*C/2\nelif B>A and B>C:\n S=A*C/2\nelse:\n S=A*B/2\nprint(S)', 'A,B,C=map(int,input().split())\nS=0\nif A>B and A>C:\n S=B*C/2\nelif B>A and B>C:\n S=A*C/2\nelse:\n S=A*B/2\nprint(int(S))']
['Wrong Answer', 'Accepted']
['s631559722', 's819735990']
[2940.0, 3060.0]
[18.0, 18.0]
[119, 124]
p03145
u989348352
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))']
['Wrong Answer', 'Accepted']
['s173386887', 's455814451']
[2940.0, 2940.0]
[18.0, 17.0]
[49, 53]
p03145
u989623817
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, _ = input().split()\n\nprint(int(A)*int(B)/2)', '\nA, B, _ = input().split()\n\nprint(int(int(A)*int(B)/2))']
['Wrong Answer', 'Accepted']
['s222067174', 's362360526']
[2940.0, 2940.0]
[18.0, 17.0]
[49, 55]
p03145
u989817703
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()))\na=l[0]*l[1]/2\nprint(a)\n', 'l = list(map(int, input().split()))\na=l[0]*l[1]/2\nprint(int(a))\n']
['Wrong Answer', 'Accepted']
['s516606923', 's659236296']
[2940.0, 2940.0]
[18.0, 18.0]
[59, 64]
p03145
u990671997
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']
['s674819909', 's012433921']
[2940.0, 2940.0]
[18.0, 17.0]
[48, 49]
p03145
u991148747
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((int)a*b/2)', 'a, b, c = map(int, input().split())\n\nprint(a*b/2)', 'a, b, c = (int(i) for i in input().split())\n\nprint(a*b/2)', 'a, b, c = map(int, input().split())\n\nprint((int)(a*b/2))']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s246348206', 's357661993', 's397596940', 's534355699']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 18.0]
[54, 49, 57, 56]
p03145
u995004106
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())\nl=[A,B,C]\nl.sort()\n\nprint(l[0]*l[1])', 'A,B,C=map(int,input().split())\nl=[A,B,C]\nl.sort()\n\nprint(int((l[0]*l[1])/2))']
['Wrong Answer', 'Accepted']
['s402077560', 's488380550']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 76]
p03145
u995102075
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)\n', 'AB, BC, CA = map(int, input().split())\n\nprint(int(AB * BC / 2))\n']
['Wrong Answer', 'Accepted']
['s800986781', 's083042239']
[2940.0, 2940.0]
[17.0, 18.0]
[59, 64]
p03145
u996952235
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 f(a):\n if a%2 == 0:\n return a//2\n else:\n return 3*a+1\n\ns = int(input())\na = [s]\ni=2\n \nwhile(True):\n a.append(f(a[i-2]))\n if a[i-1] in a[:i-1]:\n print(i)\n break\n i=i+1\n', 'a, b, _ = input().split()\n\nprint(int(a) * int(b) // 2)']
['Runtime Error', 'Accepted']
['s322120587', 's401771647']
[2940.0, 2940.0]
[17.0, 18.0]
[188, 54]
p03146
u008357982
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s=int(input())\nx=s\nl=[]\nfor i in range(1000000):\n if x%2==0:\n l.append((x//2))\n x=x//2\n if l.count(x)==2:\n print(i+1)\n break\n else:\n l.append((3*x+1))\n x=3*x+1\n if l.count(x)==2:\n print(i+1)\n break', 's=int(input())\nx=s\nl=[]\nif x==1:\n print(4)\nelse:\n for i in range(1000000):\n if x%2==0:\n l.append((x//2))\n x=x//2\n if l.count(x)==2:\n print(i+1)\n break\n else:\n l.append((3*x+1))\n x=3*x+1']
['Wrong Answer', 'Accepted']
['s856357670', 's283024598']
[3060.0, 3060.0]
[17.0, 17.0]
[289, 290]
p03146
u023229441
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['n=input()\nA=[]\nA.append(n)\nfor i in range(2,10**6):\n if n%2==0:\n n/=2\n else:\n n=3*n+1\n if n in A:\n print(i)\n exit()\n else:\n A.append(n)', 'n=int(input())\nA=[]\nA.append(n)\nfor i in range(2,10**6):\n if n%2==0:\n n/=2\n else:\n n=3*n+1\n if n in A:\n print(i)\n exit()\n else:\n A.append(n)\n']
['Runtime Error', 'Accepted']
['s149434098', 's293290034']
[2940.0, 2940.0]
[18.0, 18.0]
[154, 160]
p03146
u024245528
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s = int(input())\n\nlist_aaa = []\n\nfor i in range(1,100+1):\n if i ==1:\n list_aaa.append(s)\n elif s%2 ==0:\n s= s//2\n list_aaa.append(s)\n elif s%2 ==1:\n s= (3*s)+1\n list_aaa.append(s)\nprint(list_aaa)\n\nfor i in list_aaa:\n index_num = [n for n, v in enumerate(list_aaa) if v == i]\n if len(index_num) >=2:\n print(index_num[1]+1)\n break\n', 's = int(input())\n\nlist_aaa = []\n\nfor i in range(1,100000+1):\n if i ==1:\n list_aaa.append(s)\n elif s%2 ==0:\n s= s//2\n list_aaa.append(s)\n elif s%2 ==1:\n s= (3*s)+1\n list_aaa.append(s)\n#print(list_aaa)\n\nfor i in list_aaa:\n index_num = [n for n, v in enumerate(list_aaa) if v == i]\n if len(index_num) >=2:\n print(index_num[1]+1)\n break\n']
['Wrong Answer', 'Accepted']
['s462401867', 's682185312']
[3064.0, 5132.0]
[18.0, 804.0]
[393, 397]
p03146
u027675217
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s=int(input())\nl=[s]\ni=0\nans="False"\nwhile ans=="True":\n\tif l[i]%2==0:\n\t\tl.append(l[i]//2)\n\t\ti+=1\n\t\tif l[i] in l[:i-1]:\n\t\t\tans="True"\n\telse:\n\t\tl.append(l[i]*3+1)\n\t\ti+=1\n\t\tif l[i] in l[:i-1]:\n\t\t\tans="True"\nprint(len(l))', 's=int(input())\nl=[s]\ni=0\nans="False"\nwhile ans=="False":\n\tif l[i]%2==0:\n\t\tl.append(l[i]//2)\n\t\ti+=1\n\t\tif l[i] in l[:i-1]:\n\t\t\tans="True"\n\telse:\n\t\tl.append(l[i]*3+1)\n\t\ti+=1\n\t\tif l[i] in l[:i-1]:\n\t\t\tans="True"\nprint(len(l))']
['Wrong Answer', 'Accepted']
['s343638515', 's332188795']
[3064.0, 3316.0]
[17.0, 21.0]
[218, 219]
p03146
u033524082
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s=int(input())\nl=[]\nl.append(s)\nans=[]\nc=1\nfor i in range(10000000000):\n if l[c-1]%2==0:\n l.append(int(l[c-1]/2))\n else:\n l.append(int(l[c-1]*3+1))\n for v in range(len(l)):\n ans.append(l.count(l[v]))\n if 2 in ans:\n break\n c+=1\nprint(c)', 's=int(input())\nl=[]\nl.append(s)\nans=[]\nc=1\nfor i in range(10000000000):\n if l[c-1]%2==0:\n l.append(int(l[c-1]/2))\n else:\n l.append(int(l[c-1]*3+1))\n for v in range(len(l)):\n ans.append(l.count(l[v]))\n if 2 in ans:\n break\n c+=1\nprint(c+1)\n']
['Wrong Answer', 'Accepted']
['s742342128', 's408317836']
[3060.0, 3064.0]
[30.0, 30.0]
[278, 281]
p03146
u033642300
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['def main():\n s = int(input())\n i = 1\n l = [i]\n flag = 0\n while flag == 0:\n if s % 2 == 0:\n s = s // 2\n else:\n s = 3*s + 1\n i += 1\n if s in l:\n print(i)\n return\n else:\n l.append(s)\nmain() ', 'def main():\n s = int(input())\n i = 1\n l = [s]\n flag = 0\n while flag == 0:\n if s % 2 == 0:\n s = s // 2\n else:\n s = 3*s + 1\n i += 1\n if s in l:\n print(i)\n return\n else:\n l.append(s)\nmain() ']
['Wrong Answer', 'Accepted']
['s818717535', 's291006238']
[9004.0, 8932.0]
[29.0, 30.0]
[293, 293]
p03146
u039360403
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s=int(input())\nl=[s]\na=s\nfor i in range(1000000):\n if a%2==0:\n a=int(a/2)\n l.append(a)\n else:\n a=3*a+1\n l.append(a)\n \n print(l)\n print(l.count(a))\n if l.count(a)==2:\n print(len(l))\n break\n', 's=int(input())\nl=[s]\na=s\nfor i in range(1000000):\n if a%2==0:\n a=int(a/2)\n l.append(a)\n else:\n a=3*a+1\n l.append(a)\n \n print(l)\n print(l.count(a))\n if l.count(a)==2:\n print(len(l))\n break\n', 's=int(input())\nl=[s]\na=s\nfor i in range(1000000):\n if a%2==0:\n a=int(a/2)\n l.append(a)\n else:\n a=3*a+1\n l.append(a)\n if l.count(a)==2:\n print(len(l))\n break\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s396237696', 's789104093', 's034673311']
[3060.0, 3060.0, 2940.0]
[19.0, 18.0, 17.0]
[290, 290, 238]
p03146
u050698451
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['l = []\nl.append(int(input()))\ni = 0\nwhile True:\n if s&2:\n l.append(3*l[i]+1)\n else:\n l.append(l[i]/2)\n i += 1\n for j in range(j,i):\n if l[j] == l[i]:\n break\nprint(i)', 'l = []\nl.append(int(input()))\ni = 0\nkey = 1\nwhile key:\n if l[i]%2:\n l.append(3*l[i]+1)\n else:\n l.append(l[i]/2)\n i += 1\n for j in range(i-1):\n if l[j] == l[i]:\n key = 0\n print(i+1)\n break\n']
['Runtime Error', 'Accepted']
['s471957517', 's211229019']
[2940.0, 3060.0]
[19.0, 18.0]
[183, 216]
p03146
u054106284
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s = int(input())\nL = set([s])\nnow = s\nfor i in range(1,1000000):\n if now%2 == 0:\n now = now // 2\n else:\n now = 3 * now + 1\n if now in L:\n print(s)\n break\n else:\n L.add(now)\n', 's = int(input())\nif s == 1 or s == 2:\n print(4)\n res = 1\nelse:\n while True:\n if s == 4:\n break\n else:\n if s % 2 == 0:\n s = s // 2\n else:\n s = 3 * s + 1\n res += 1\n\n print(res+3)', 's = int(input())\nL = set([s])\nnow = s\nfor i in range(1000000):\n if now%2 == 0:\n now = now // 2\n else:\n now = 3 * now + 1\n if now in L:\n print(s)\n break\n else:\n L.add(now)', 's = int(input())\nif s == 1 or s == 2:\n print(4)\n res = 1\n while True:\n if s == 4:\n break\n else:\n if s % 2 == 0:\n s = s // 2\n else:\n s = 3 * s + 1\n res += 1\n\n print(res+3)', 's = int(input())\nif s == 1 or s == 2:\n print(4)\nelse:\n res = 1\n while True:\n if s == 4:\n break\n else:\n if s % 2 == 0:\n s = s // 2\n else:\n s = 3 * s + 1\n res += 1\n\n print(res+3)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s382709685', 's640564554', 's828058828', 's944855997', 's289649733']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 18.0]
[192, 276, 189, 270, 276]
p03146
u069699931
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['lis=[int(input())]\nfor i in range(1000):\n if lis[i]%2==0:\n a=lis[i]//2\n lis.append(a)\n if a==lis[0]:\n break\n else:\n a=lis[i]*3+1\n lis.append(a)\n if a==lis[0]:\n break\n def has_duplicates(x):\n return len(x) != len(set(x))\n if has_duplicates(lis)==True:\n break\nprint(len(lis))', 'lis=[int(input())]\nfor i in range(1000):\n if lis[i]%2==0:\n a=lis[i]//2\n lis.append(a)\n def has_duplicates(x):\n return len(x) != len(set(x))\n if has_duplicates(lis)==True:\n break\n else:\n a=lis[i]*3+1\n lis.append(a)\n def has_duplicates(x):\n return len(x) != len(set(x))\n if has_duplicates(lis)==True:\n break\nprint(lis)\nprint(len(lis))', 'lis=[int(input())]\nfor i in range(1000):\n if lis[i]%2==0:\n a=lis[i]//2\n lis.append(a)\n def has_duplicates(x):\n return len(x) != len(set(x))\n if has_duplicates(lis)==True:\n break\n else:\n a=lis[i]*3+1\n lis.append(a)\n def has_duplicates(x):\n return len(x) != len(set(x))\n if has_duplicates(lis)==True:\n break\nprint(len(lis))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s239862444', 's972973182', 's637745275']
[9196.0, 9140.0, 9144.0]
[27.0, 27.0, 32.0]
[395, 438, 427]
p03146
u073549161
2,000
1,048,576
A sequence a=\\{a_1,a_2,a_3,......\\} is determined as follows: * The first term s is given as input. * Let f(n) be the following function: f(n) = n/2 if n is even, and f(n) = 3n+1 if n is odd. * a_i = s when i = 1, and a_i = f(a_{i-1}) when i > 1. Find the minimum integer m that satisfies the following condition: * There exists an integer n such that a_m = a_n (m > n).
['s = int(input())\nl = [-1] * 300\nl[1] = s\nfor i in range(2,200):\n if i % 2 == 0:\n l[i] = l[i - 1] / 2\n else:\n l[i] = 3*l[i - 1] + 1\n\n print(str(i)+":"+str(l[i]))\n\n if l[i] in l[:i]:\n print(i)\n break\n', 'used = dict()\ns = int(input())\ncnt = 1\nwhile True:\n if s in used:\n break\n cnt += 1\n used[s] = True\n if s&1==1:\n s = 3 * s + 1\n else:\n s = s//2\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s164721048', 's168683805']
[3060.0, 9068.0]
[18.0, 26.0]
[238, 189]