summaryrefslogtreecommitdiff
path: root/progs/a574.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a574.py')
-rw-r--r--progs/a574.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a574.py b/progs/a574.py
new file mode 100644
index 0000000..9d385a3
--- /dev/null
+++ b/progs/a574.py
@@ -0,0 +1,5 @@
+def count_Num(n):
+ if (n == 1):
+ return 1
+ count = pow(2,n - 2)
+ return count \ No newline at end of file