diff --git a/README.md b/README.md index 887ae9c..105d6d3 100644 --- a/README.md +++ b/README.md @@ -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) | diff --git a/src/Take Two Stones/python3.py b/src/Take Two Stones/python3.py new file mode 100644 index 0000000..96c1ec0 --- /dev/null +++ b/src/Take Two Stones/python3.py @@ -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. :( ')