1
0
This commit is contained in:
Daniel Tartavel 2022-09-23 20:41:50 +02:00
parent f070bde13e
commit 208b617bba

View File

@ -59,13 +59,16 @@ class schulze
$s = $v[$i]; $s = $v[$i];
if ($i == 0) if ($i == 0)
{ {
echo "i = 0";
$w[$s] = 1; $w[$s] = 1;
} }
if ($s == $v[$i+1]) if ($s == $v[$i+1])
{ {
echo "egal\n";
$w[$s] += 1; $w[$s] += 1;
}else }else
{ {
echo "non egal\n";
$w[$s] = 1; $w[$s] = 1;
} }
} }