fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $divisibility = 1;
  6. $quantity = 5;
  7. $initialSupply = 10000;
  8.  
  9. echo max(1, min(25, $quantity * 900000 / $initialSupply) - floor(0.8 * log(9000000000000000 / $initialSupply * pow(10, $divisibility )))),"\n";
  10. echo min(25, $quantity * 900000 / $initialSupply),"\n";
  11. echo floor(0.8 * log(9000000000000000 / $initialSupply * pow(10, $divisibility ))),"\n";
Success #stdin #stdout 0.02s 52488KB
stdin
Standard input is empty
stdout
2
25
23