Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Add one line solutions to 2 problems
Browse files Browse the repository at this point in the history
  • Loading branch information
MagusWyvern committed Oct 31, 2023
1 parent 85c33e7 commit 46d0470
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion snail.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
break
height += 3

print(day)
print(day)

# One line solution:
# print(int(input()) / 2 - 1)
5 changes: 4 additions & 1 deletion square-sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@

n = int(input())

print(int(n / 2 - 1))
print(int(n / 2 - 1))

# One line solution:
# print(int(int(input()) / 2 - 1))

0 comments on commit 46d0470

Please sign in to comment.