|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
$reads=explode("\n",file_get_contents("input.txt"));
|
|
|
|
$reads=explode("\n",file_get_contents("input.txt"));
|
|
|
|
|
|
|
|
|
|
|
|
while(count($reads)>0){
|
|
|
|
while(count($reads)>1){
|
|
|
|
$couples=array();
|
|
|
|
$couples=array();
|
|
|
|
for($countGauche=0;$countGauche<count($reads);$countGauche++){
|
|
|
|
for($countGauche=0;$countGauche<count($reads);$countGauche++){
|
|
|
|
//tester à gauche
|
|
|
|
//tester à gauche
|
|
|
@ -62,4 +62,4 @@ function getKeyOfValueMax($array){
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|