This commit is contained in:
Leon 2021-08-15 23:59:10 +08:00
parent 7b94ae678e
commit a3fd6c113a

View File

@ -25,7 +25,7 @@ team_task(){
local user_sum=${#array[*]} local user_sum=${#array[*]}
local a b i j t sum local a b i j t sum
[[ $q -ge $(($user_sum/p)) ]] && q=$(($user_sum/p)) [[ $q -ge $(($user_sum/p)) ]] && q=$(($user_sum/p))
if [[ -f /ql/scripts/$scr ]]; then if [[ -f $scr ]]; then
for ((m = 0; m < $user_sum; m++)); do for ((m = 0; m < $user_sum; m++)); do
j=$((m + 1)) j=$((m + 1))
x=$((m/q)) x=$((m/q))