Advertisement
Guest User

Untitled

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