fork download
  1. <?php
  2. $data = 1;
  3. for($i=100;$i>=1;$i--){
  4. $data = bcmul($data,$i);
  5. }
  6. $result = 0;
  7. while(strlen($data) > 0){
  8. $letter = substr($data,0,1);
  9. $data = substr($data,1);
  10. $result += (int)$letter;
  11. }
  12. print $result;
  13. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
648