summary refs log tree commit diff homepage
path: root/2020/day01-1.sh
blob: 030d5239bdf3f5bbd835efdb0af9710152f32ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -eu
entries=$(cat)
for i in $entries; do
	for j in $entries; do
		if [ $((i+j)) -eq 2020 ]; then
			echo $((i*j))
			exit
		fi
	done
done
6bf6bcfce8b44&follow=1'>Tell "Music" rather than "iTunes"June McEnroe 2020-12-31Add ASCII control code names to bitJune McEnroe 2020-12-31Simplify bit lexing and parsingJune McEnroe 2020-12-31Add ddateJune McEnroe 2020-12-30Print octal for 8 bits in bitJune McEnroe 2020-12-30Add unary & to bitJune McEnroe 2020-12-30Support unary + in orderJune McEnroe 2020-12-30Add postfix $ operator to bitJune McEnroe 2020-12-29Add make lexerJune McEnroe 2020-12-29Clean up C lexerJune McEnroe 2020-12-29Clean up hilex code somewhatJune McEnroe 2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe 2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe 2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe 2020-12-29Add hilex HTML outputJune McEnroe