aboutsummaryrefslogtreecommitdiff
path: root/challenge-133/abigail/python/ch-1.py
diff options
context:
space:
mode:
authorE7-87-83 <fungcheokyin@gmail.com>2021-11-15 06:31:00 +0800
committerE7-87-83 <fungcheokyin@gmail.com>2021-11-15 06:31:00 +0800
commit4f3b607b4fabd7693f8ee8d9c2291cdddd614b25 (patch)
treea60ba10532b3a3ab29b304c639e68404fa2b1626 /challenge-133/abigail/python/ch-1.py
parenta3c164970c4e43cc71b5fe8bd1c4a3fb02a35709 (diff)
parentf0cf4c2649ad878ce73142862f83e08dead5cc86 (diff)
downloadperlweeklychallenge-club-4f3b607b4fabd7693f8ee8d9c2291cdddd614b25.tar.gz
perlweeklychallenge-club-4f3b607b4fabd7693f8ee8d9c2291cdddd614b25.tar.bz2
perlweeklychallenge-club-4f3b607b4fabd7693f8ee8d9c2291cdddd614b25.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'challenge-133/abigail/python/ch-1.py')
-rw-r--r--challenge-133/abigail/python/ch-1.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-133/abigail/python/ch-1.py b/challenge-133/abigail/python/ch-1.py
new file mode 100644
index 0000000000..9fc7b1c3fd
--- /dev/null
+++ b/challenge-133/abigail/python/ch-1.py
@@ -0,0 +1,15 @@
+#!/opt/local/bin/python
+
+#
+# See ../README.md
+#
+
+#
+# Run as: python ch-1.py < input-file
+#
+
+import fileinput
+import math
+
+for num in fileinput . input ():
+ print (math . floor (math . exp (math . log (int (num)) / 2)))