#!/bin/bash
g++ make.cpp -o make -Wall
g++ 1.cpp -o ac -Wall
g++ sb.cpp -o sb -Wall
while true; do
./make > 1.in
./ac < 1.in > 1.out
./sb < 1.in > sb.out
if diff 1.out sb.out; then
printf "AC!"
else
exit
fi
done
#!/bin/bash
g++ make.cpp -o make -Wall
g++ 1.cpp -o ac -Wall
g++ sb.cpp -o sb -Wall
while true; do
./make > 1.in
./ac < 1.in > 1.out
./sb < 1.in > sb.out
if diff 1.out sb.out; then
printf "AC!"
else
exit
fi
done
[bzoj] 3224 Tyvj 1728 普通平衡树 || 平衡树板子题
原文:https://www.cnblogs.com/mrha/p/8157645.html