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.
12 lines
166 B
Bash
12 lines
166 B
Bash
5 years ago
|
#!/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;
|