aboutsummaryrefslogtreecommitdiff
path: root/problems/whatsthatprogression/attachments/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'problems/whatsthatprogression/attachments/template.py')
-rw-r--r--problems/whatsthatprogression/attachments/template.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/problems/whatsthatprogression/attachments/template.py b/problems/whatsthatprogression/attachments/template.py
new file mode 100644
index 0000000..3fa952c
--- /dev/null
+++ b/problems/whatsthatprogression/attachments/template.py
@@ -0,0 +1,15 @@
+import sys
+import math
+
+inputs = input().split()
+income = int(inputs[0])
+mr = float(inputs[1])
+savings = int(inputs[2])
+n = int(input())
+for i in range(n):
+ price, expenses = [int(j) for j in input().split()]
+
+# Write an answer using print
+# To debug: print("Debug messages...", file=sys.stderr, flush=True)
+
+print("Yes, the house is affordable with 1 roommate(s) and $1 to spare.")