This website requires JavaScript.
Explore
Help
Register
Sign In
jackfrost
/
advent2021
Watch
1
Star
0
Fork
You've already forked advent2021
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
master
advent2021
/
two_first.awk
4 lines
81 B
Awk
Executable File
Raw
Permalink
Blame
History
#!/usr/bin/awk -f
/forward/
{
x
+=
$
2
}
/
down
/
{
y
+=
$
2
}
/
up
/
{
y
-=
$
2
}
END
{
print
x
*
y
}
Reference in New Issue
View Git Blame
Copy Permalink