Skip to content

Commit

Permalink
feat: add 1042 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
sabira-khan committed Dec 25, 2023
1 parent f2925c8 commit 981a0c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PythonSolutions/Beecrowd1042_uri.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
X, Y, Z = map(int, input().split())
min_value = min(X, Y, Z)
max_value = max(X, Y, Z)
middle_value = X + Y + Z - min_value - max_value

print(f"{min_value}\n{middle_value}\n{max_value}")
print(f"\n{X}\n{Y}\n{Z}")

# proving a point that we can solve this without sort ;-P

0 comments on commit 981a0c4

Please sign in to comment.