Add everything I got

This commit is contained in:
2023-12-01 14:20:13 +01:00
parent e2343da168
commit 7d709d6f24
13 changed files with 424 additions and 1 deletions

17
4b.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
sum=0
while read a; do
IFS=, read x y <<< $a
IFS=- read x1 x2 <<< $x
IFS=- read y1 y2 <<< $y
if [[ $(( (x1 - y2) * (x2 - y1) )) -le 0 ]]; then
let sum++
fi
done
echo $sum