summaryrefslogtreecommitdiff
path: root/test/2a.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/2a.py')
-rw-r--r--test/2a.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/2a.py b/test/2a.py
new file mode 100644
index 0000000..f45041a
--- /dev/null
+++ b/test/2a.py
@@ -0,0 +1,12 @@
+n = int(input())
+x = int(input())
+m = 1
+while n > 1:
+ tmp = 2 * x
+ m = m * tmp
+ n = n - 1
+c = 0
+for i in range(m):
+ g = 2 * m
+ c = c + i + g
+print(m + c)