summary refs log tree commit diff homepage
path: root/2020/day01-2.sh
blob: 6f264377da7df24bfcd229a56359cf82641d4f0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -eu
entries=$(cat)
for i in $entries; do
	for j in $entries; do
		for k in $entries; do
			if [ $((i+j+k)) -eq 2020 ]; then
				echo $((i*j*k))
				exit
			fi
		done
	done
done
/tr> 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe The IRC and Textual matchers miss bans mixed with other mode changes, but those are rare. 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe Replacing declarations followed by while loops with for loops and generating the short option string from the long options. 2020-03-31Update unscoop catgirl matchersJune McEnroe I'm not concerned about keeping the old matchers since I'm almost entirely certain I was the only one who ever used the old version of catgirl, and I already imported those logs. 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe