Skip to content

Instantly share code, notes, and snippets.

@Nircek
Last active November 23, 2022 13:42
Show Gist options
  • Select an option

  • Save Nircek/839c9b07cc78302a4e79ac433767df8e to your computer and use it in GitHub Desktop.

Select an option

Save Nircek/839c9b07cc78302a4e79ac433767df8e to your computer and use it in GitHub Desktop.
s() { g++ -O2 $1.cpp; for e in $([ -z "$2" ] && echo ./$1/data/sample/*.ans || echo ./$1/data/*/*.ans); do f=${e%.*}; echo $f.in; diff -wyBIEZ $f.ans <(./a.out < $f.in); done }; s bob; # s bob 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment