<?php
$count = 0;
for ( $match1 = 0; $match1 < 3; $match1++ )
for ( $match2 = 0; $match2 < 3; $match2++ )
for ( $match3 = 0; $match3 < 3; $match3++ )
for ( $match4 = 0; $match4 < 3; $match4++ )
for ( $match5 = 0; $match5 < 3; $match5++ )
for ( $match6 = 0; $match6 < 3; $match6++ )
for ( $match7 = 0; $match7 < 3; $match7++ )
for ( $match8 = 0; $match8 < 3; $match8++ )
for ( $match9 = 0; $match9 < 3; $match9++ )
for ( $match10 = 0; $match10 < 3; $match10++ )
for ( $match11 = 0; $match11 < 3; $match11++ )
for ( $match12 = 0; $match12 < 3; $match12++ )
for ( $match13 = 0; $match13 < 3; $match13++ )
for ( $match14 = 0; $match14 < 3; $match14++ )
for ( $match15 = 0; $match15 < 3; $match15++ ) {
$column = join(array($match1, $match2, $match3, $match4, $match5, $match6, $match7, $match8, $match9, $match10, $match11, $match12, $match13, $match14, $match15));
$count0 = substr_count($column, '0');
$count1 = substr_count($column, '1');
$count2 = substr_count($column, '2');
$count20 = substr_count($column, '20');
$count01 = substr_count($column, '01');
$count10 = substr_count($column, '10');
$count12 = substr_count($column, '12');
$count21 = substr_count($column, '21');
$count101 = substr_count($column, '101');
$count112 = substr_count($column, '112');
$count211 = substr_count($column, '211');
preg_match_all('/[0]+/', $column, $matches);
$max0 = $matches[0] ? strlen(max($matches[0])) : 0;
preg_match_all('/[1]+/', $column, $matches);
$max1 = $matches[0] ? strlen(max($matches[0])) : 0;
preg_match_all('/[2]+/', $column, $matches);
$max2 = $matches[0] ? strlen(max($matches[0])) : 0;
// en az 1 en çok 5 maç 0 biter
if ( $count0 < 1 ) continue;
if ( $count0 > 5 ) continue;
// en az 4 en çok 10 maç 1 biter
if ( $count1 < 4 ) continue;
if ( $count1 > 10 ) continue;
// en az 4 en çok 10 maç 2 biter
if ( $count2 < 4 ) continue;
if ( $count2 > 10 ) continue;
// en az 1 kere ard arda 2 maç 2 ve 0 biter
if ( $count20 < 1 ) continue;
// en az 1 kere ard arda 2 maç 0 ve 1 biter
if ( $count01 < 1 ) continue;
// en az 1 kere ard arda 2 maç 1 ve 0 biter
if ( $count10 < 1 ) continue;
// en az 1 kere ard arda 2 maç 1 ve 2 biter
if ( $count12 < 1 ) continue;
// en az 1 kere ard arda 2 maç 2 ve 1 biter
if ( $count21 < 1 ) continue;
// en az 1 kere ard arda 3 maç 1, 0 ve 1 biter
if ( $count101 < 1 ) continue;
// en az 1 kere ard arda 3 maç 1, 1 ve 2 biter
if ( $count112 < 1 ) continue;
// en az 1 kere ard arda 3 maç 2, 1 ve 1 biter
if ( $count211 < 1 ) continue;
// ard arda en az 2 en çok 3 maç 0 biter
if ( $max0 < 2 ) continue;
if ( $max0 > 3 ) continue;
// ard arda en az 2 en çok 6 maç 1 biter
if ( $max1 < 2 ) continue;
if ( $max1 > 6 ) continue;
// ard arda en az 2 en çok 6 maç 2 biter
if ( $max2 < 2 ) continue;
if ( $max2 > 6 ) continue;
$count++;
}
echo $count * 0.25;
?>
preferences:
37.96 ms | 402 KiB | 5 Q