From: Jan "Yenya" Kasprzak Date: Wed, 21 Dec 2022 07:56:22 +0000 (+0100) Subject: Day 6: cleanup X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f837717da7e44eb2de14c3ceeac504cf4d051a73;p=aoc.git Day 6: cleanup --- diff --git a/2022/11.pl b/2022/11.pl new file mode 100755 index 0000000..955dd52 --- /dev/null +++ b/2022/11.pl @@ -0,0 +1,11 @@ +#!/usr/bin/perl -w + +use v5.36; +use strict; +use experimental 'multidimensional'; + +chomp($_ = <>); +my $i; +s/^.//, $i++ while substr($_, 0, 4) =~ /(.).*\1/; +say $i + 4; + diff --git a/2022/12a.pl b/2022/12.pl similarity index 100% rename from 2022/12a.pl rename to 2022/12.pl