17 lines
295 B
Bash
Executable File
17 lines
295 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
for i in {1..37}
|
|
do
|
|
if ! [[ -d problem-$i ]]
|
|
then
|
|
continue
|
|
fi
|
|
|
|
{
|
|
IFS=$'\n' read -r -d '' STDERR;
|
|
IFS=$'\n' read -r -d '' STDOUT;
|
|
} < <((printf '\0%s\0' "$(./problem-$i/bin/solution)" 1>&2) 2>&1)
|
|
|
|
printf "%3d] %6s -> %s\n" $i "$STDERR" "$STDOUT"
|
|
done
|