#!/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
标签:class div 平衡 out make cpp while bash printf
#!/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 普通平衡树 || 平衡树板子题
标签:class div 平衡 out make cpp while bash printf
原文地址:https://www.cnblogs.com/mrha/p/8157645.html