Ad
  • Default User Avatar

    Probably there is problem with range, in C version you are forced to return int where some of the random values are from long long range? Dunno, maybe that`s the fault. Edit: Okay, probably i was wrong. In my code casting the result of log10 function to int before comparing helped to pass the random test. I forgotten to do that, so that was the fault.