aboutsummaryrefslogtreecommitdiff
path: root/2020/05/puzzle-2.awk
blob: 8b9b823d480fdaeb7f6eddbd6e8c3bf35f4cdf7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ ids[NR] = $0 }

END {
	n = asort(ids)
	for (i = 1; i <= n; i++) {
		if ((i + 35) != ids[i]) {
			print i + 35
			exit
		}
	}
}