This website requires JavaScript.
Explore
Help
Sign In
setop
/
aoc2022
Watch
1
Star
0
Fork
You've already forked aoc2022
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
192d9b1ad6
aoc2022
/
d04
/
part1.awk
4 lines
95 B
Awk
Raw
Blame
History
# awk -F ',|-' -f part1.awk input
(
$
3
>=
$
1
&&
$
4
<=
$
2
)
||
(
$
1
>=
$
3
&&
$
2
<=
$
4
)
{
n
++
}
END
{
print
n
}
Reference in New Issue
View Git Blame
Copy Permalink