You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env bash
|
|
cd "$(dirname "$0")";
|
|
|
|
output=0;
|
|
while read nr; do
|
|
a=$((nr / 3));
|
|
a=$((a - 2));
|
|
output=$((a + output));
|
|
done < ./input
|
|
|
|
echo $output;
|