Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tt = microtime(true);
- for($j=0;$j<10;$j++){
- $mom = true;
- while($mom){
- $a = array();
- for($i=0;$i <= 9;$i++)
- $a[] = rand(5,7);
- if(@($a[0] + 13 * $a[1] / $a[2] + $a[3] + 12 * $a[4] - $a[5] - 11 + $a[6] * $a[7] / $a[8] - 10 ) == 66){
- if(isset($argv[1]) && $argv[1] == 'debug'){
- echo $a[0]." + 13 * ".$a[1]." / ". $a[2]." + ".$a[3]." + 12 * ".$a[4]." - ".$a[5]." - 11 + ".$a[6]." * ".$a[7]." / ".$a[8]." - 10 ";
- echo "== 66\n";
- }
- $mom = false;
- }
- }
- }
- $tt2 = microtime(true);
- echo "\n $tt2 - $tt = ".($tt2-$tt)."\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement