Skip to content
Snippets Groups Projects
Commit 651bca4c authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Diminui testes

parent 48895917
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -108,7 +108,7 @@ int calculaBonus(Vertice v, Lista filhos) {
for(No n = primeiroNoLista(v->filhos); n; n = getSucessorNo(n)) {
Vertice filho = getConteudo(n);
// Se o filho não está na lsita filhos e não está no grupo de vértices já consumidos
if(!pertenceLista(filho, filhos) && !filho->grupo) {
if(!filho->grupo && !pertenceLista(filho, filhos)) {
bonus += filho->peso;
}
}
......
......@@ -4,10 +4,10 @@
tempo_max=10000 #10s
# tamanhos do tabuleiro
tams=(4 8 16 32 64 128 256)
tams=(4 8 16 32 64 128)
# lista de cores
cores=(2 4 8 16 32)
cores=(2 4 8 16)
#-- Cores do terminal
RED='\033[0;31m'
......@@ -40,7 +40,7 @@ do
# echo "Usando semente: ${semente}"
./test $i $j $cor $semente
T_inicial=$(date +%s%N)
../main < "/tmp/${semente}.in"
../main < "/tmp/${semente}.in" > /dev/null
T_gasto=$(($(date +%s%N) - $T_inicial))
T_soma_cor=$(($T_gasto + $T_soma_cor))
T_soma_total=$(($T_gasto + $T_soma_total))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment