sigrid
/
aoc
Code
Insights
/
aoc
/
2021
/
02-02.awk
SS
Sigrid Solveig Haflínudóttir
add day 2 code
bf77226
4 years ago
History
Code
Blame
1 line · 53 B · Text
Raw
Download
Copy shown lines
/f/{x+=$2;d+=a*$2}/n/{a+=$2}/u/{a-=$2}END{print x*d}
/f/{x+=$2;d+=a*$2}/n/{a+=$2}/u/{a-=$2}END{print x*d}
Keyboard shortcuts
Close
General
Show keyboard shortcuts
?
Focus the current search
/
Issues and pull requests
Open filters
f
Issues, pull requests and Inbox
Select next item
j
↓
Select previous item
k
↑
Open selected item
Enter
Dismiss filters or clear selection
Esc
Repository code
Go to file
t