Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create python3 version of Take Two Stones problem #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ Solutions to the [Kattis archives](https://open.kattis.com/).
| [T9 Spelling](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/T9%20Spelling) | [Python 3](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/T9%20Spelling/Python%203) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/t9spelling) |
| [Tai's formula](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tai%27s%20formula) | [C](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tai%27s%20formula/C) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/taisformula) |
| [Tajna](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tajna) | [C](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tajna/C) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/tajna) |
| [Take Two Stones](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Take%20Two%20Stones) | [Go](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Take%20Two%20Stones/Go) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/twostones) |
| [Take Two Stones](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Take%20Two%20Stones) |[Python 3](https://github.com/bydesign21/Kattis-Solutions/blob/patch-1/src/Take%20Two%20Stones/python3.py), [Go](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Take%20Two%20Stones/Go) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/twostones) |
| [Tarifa](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tarifa) | [C](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tarifa/C) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/tarifa) |
| [Tautology](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tautology) | [Python 3](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Tautology/Python%203) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/tautology) |
| [Teacher Evaluation](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Teacher%20Evaluation) | [Python 3](https://github.com/JonSteinn/Kattis-Solutions/tree/master/src/Teacher%20Evaluation/Python%203) | [![:cat:](https://open.kattis.com/favicon)](https://open.kattis.com/problems/teacherevaluation) |
Expand Down
7 changes: 7 additions & 0 deletions src/Take Two Stones/python3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
stones_left = int(input())
if stones_left % 2 == 1:
print('Alice')
elif stones_left % 2 == 0:
print('Bob')
else:
print('IDK what you entered, but it broke my logic. :( ')