Created
November 3, 2016 20:50
-
-
Save Michcioperz/ef2b72fbac6572780e60921c16177288 to your computer and use it in GitHub Desktop.
gotowiec Piotrka
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
g++ -o sol sol.cpp | |
for((i=0;i<100;i++)) do | |
echo "Test $i" | |
./sol < fla$i.in > wyj.out | |
diff -w -q wyj.out fla$i.out | |
[[ $? -ne 0 ]] && break | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
g++ -o sol sol.cpp | |
g++ -o gene gene.cpp | |
g++ -o brut brut.cpp | |
for((i=1;i<=100;i++)) do | |
echo "Test $i" | |
echo $i | ./gene > dane.in | |
./sol < dane.in > wyj1.out | |
./brut < dane.in > wyj2.out | |
diff -w -q wyj1.out wyj2.out | |
[[ $? -ne 0 ]] && break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment