This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am citizen428 on github. | |
* I am citizen428 (https://keybase.io/citizen428) on keybase. | |
* I have a public key whose fingerprint is E183 E826 AAA2 71D9 A25E B8E9 EF16 E5E6 87B2 A218 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @l = 'aoc-expenses.txt'.IO.lines; | |
# part 1 | |
say [*] @l.combinations(2).first: *.sum == 2020; | |
# part 2 | |
say [*] @l.combinations(3).first: *.sum == 2020; |
OlderNewer