fork download
  1. #!/usr/bin/perl
  2. use 5.10.0;
  3. for(1..<>){$u+=length sprintf"%b",$_;$n++}$u/=$n;say$u
Success #stdin #stdout 0s 6044KB
stdin
25
stdout
3.96