This commit is contained in:
2021-12-01 14:55:47 +01:00
commit b37696aca4
3 changed files with 35 additions and 0 deletions

12
01/01.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
prev=0
found=0
while read current; do
if [ $prev -gt 0 ] && [ $current -gt $prev ]; then
found=$((found+1))
fi
prev=$current
done
echo $found