From dbcd3900b60247c6b38fb131972caa19d46f980f Mon Sep 17 00:00:00 2001 From: Noah O Donnaile Date: Mon, 2 Oct 2017 07:21:11 +0200 Subject: [PATCH] Add kattis prob quadrant in python3 --- kattis/quadrant/solution.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 kattis/quadrant/solution.py diff --git a/kattis/quadrant/solution.py b/kattis/quadrant/solution.py new file mode 100644 index 0000000..a34cf66 --- /dev/null +++ b/kattis/quadrant/solution.py @@ -0,0 +1,13 @@ +x = int(input()) +y = int(input()) + +if x > 0: + if y > 0: + print(1) + else: + print(4) +else: + if y > 0: + print(2) + else: + print(3)