aboutsummaryrefslogtreecommitdiff
path: root/entries
diff options
context:
space:
mode:
Diffstat (limited to 'entries')
-rwxr-xr-xentries/chameco/driver.sh6
-rw-r--r--entries/chameco/fib.pl1
2 files changed, 7 insertions, 0 deletions
diff --git a/entries/chameco/driver.sh b/entries/chameco/driver.sh
new file mode 100755
index 0000000..1f90a04
--- /dev/null
+++ b/entries/chameco/driver.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+cp fib.pl result.pl
+for _ in $(seq "$1"); do
+ echo "$(perl result.pl)" > result.pl
+done
+wc -l result.pl
diff --git a/entries/chameco/fib.pl b/entries/chameco/fib.pl
new file mode 100644
index 0000000..472c58f
--- /dev/null
+++ b/entries/chameco/fib.pl
@@ -0,0 +1 @@
+$t='$t=%c%s%c;while($i<int(__LINE__*1.61803+0.5)){printf($t,39,$t,39,10);++$i}%c';while($i<int(__LINE__*1.61803+0.5)){printf($t,39,$t,39,10);++$i}