Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Imhoon committed Apr 7, 2022
1 parent d19a77d commit aa669ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test9.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
a,b,c = input().split()

def median(x):
sorted(x)
if len(x)%2 == 0:
return x[len(x)//2]
else:
return x[len(x)//2+1]

test = [[2,5,3], [4,6,4]]
for t in test:
print(median(t))

0 comments on commit aa669ca

Please sign in to comment.