From 87f2e36eff988be70318ba16552579c8981529d2 Mon Sep 17 00:00:00 2001 From: Packy Anderson Date: Mon, 31 Jul 2023 11:55:12 -0400 Subject: More filename fixes --- challenge-227/packy-anderson/README | 68 ---------------------------------- challenge-227/packy-anderson/README.md | 68 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 68 deletions(-) delete mode 100644 challenge-227/packy-anderson/README create mode 100644 challenge-227/packy-anderson/README.md diff --git a/challenge-227/packy-anderson/README b/challenge-227/packy-anderson/README deleted file mode 100644 index 1b230ba294..0000000000 --- a/challenge-227/packy-anderson/README +++ /dev/null @@ -1,68 +0,0 @@ -# Solutions by Packy Anderson - -## Perl - -* [Task 1](perl/task-1.pl) - -Sample output -``` -$ perl/task-1.pl 2023 -Input: $year = 2023 -Output: 2 -``` -* [Task 2](perl/task-2.pl) - -Sample output -``` -$ perl/task-2.pl < task-2-input.txt -IV + V => IX -M - I => CMXCIX -X / II => V -XI * VI => LXVI -VII ** III => CCCXLIII -V - V => nulla (they knew about zero but didn't have a symbol) -V / II => non potest (they didn't do fractions) -MMM + M => non potest (they only went up to 3999) -V - X => non potest (they didn't do negative numbers) -$ echo "MMMM" | perl/task-2.pl -Lines must be of the form "operand1 operator operand2" -where both operands are valid roman numerals and the -operator is one of the following: + - * / ** -$ echo "X + Y" | perl/task-2.pl -'Y' is not a roman numberal! -``` - -## Raku - -* [Task 1](raku/task-1.raku) - -Sample output -``` -$ raku/task-1.raku 2023 -Input: $year = 2023 -Output: 2 -``` - -* [Task 2](raku/task-2.raku) - -Sample output -``` -$ raku/task-2.raku < task-2-input.txt -IV + V => IX -M - I => CMXCIX -X / II => V -XI * VI => LXVI -VII ** III => CCCXLIII -V - V => nulla (they knew about zero but didn't have a symbol) -V / II => non potest (they didn't do fractions) -MMM + M => non potest (they only went up to 3999) -V - X => non potest (they didn't do negative numbers) -``` - -## Data File - -[task-2-input.txt](task-2-input.txt) - -## Blog Post - -[Perl Weekly Challenge 227](http://packy.dardan.com/2023/07/27/perl-weekly-challenge-227/) \ No newline at end of file diff --git a/challenge-227/packy-anderson/README.md b/challenge-227/packy-anderson/README.md new file mode 100644 index 0000000000..1b230ba294 --- /dev/null +++ b/challenge-227/packy-anderson/README.md @@ -0,0 +1,68 @@ +# Solutions by Packy Anderson + +## Perl + +* [Task 1](perl/task-1.pl) + +Sample output +``` +$ perl/task-1.pl 2023 +Input: $year = 2023 +Output: 2 +``` +* [Task 2](perl/task-2.pl) + +Sample output +``` +$ perl/task-2.pl < task-2-input.txt +IV + V => IX +M - I => CMXCIX +X / II => V +XI * VI => LXVI +VII ** III => CCCXLIII +V - V => nulla (they knew about zero but didn't have a symbol) +V / II => non potest (they didn't do fractions) +MMM + M => non potest (they only went up to 3999) +V - X => non potest (they didn't do negative numbers) +$ echo "MMMM" | perl/task-2.pl +Lines must be of the form "operand1 operator operand2" +where both operands are valid roman numerals and the +operator is one of the following: + - * / ** +$ echo "X + Y" | perl/task-2.pl +'Y' is not a roman numberal! +``` + +## Raku + +* [Task 1](raku/task-1.raku) + +Sample output +``` +$ raku/task-1.raku 2023 +Input: $year = 2023 +Output: 2 +``` + +* [Task 2](raku/task-2.raku) + +Sample output +``` +$ raku/task-2.raku < task-2-input.txt +IV + V => IX +M - I => CMXCIX +X / II => V +XI * VI => LXVI +VII ** III => CCCXLIII +V - V => nulla (they knew about zero but didn't have a symbol) +V / II => non potest (they didn't do fractions) +MMM + M => non potest (they only went up to 3999) +V - X => non potest (they didn't do negative numbers) +``` + +## Data File + +[task-2-input.txt](task-2-input.txt) + +## Blog Post + +[Perl Weekly Challenge 227](http://packy.dardan.com/2023/07/27/perl-weekly-challenge-227/) \ No newline at end of file -- cgit