day 4, easy
This commit is contained in:
parent
c8c36a069e
commit
3f67d3091d
|
@ -0,0 +1,3 @@
|
|||
# awk -F ',|-' -f part1.awk input
|
||||
($3>=$1 && $4<=$2) || ($1>=$3 && $2<=$4) {n++}
|
||||
END {print n}
|
|
@ -0,0 +1,3 @@
|
|||
# awk -F ',|-' -f part2.awk input
|
||||
$3>$2 || $1 > $4 {n++}
|
||||
END {print NR-n}
|
Loading…
Reference in New Issue