<?php fscanf(STDIN, "%d", $n); $c = 0; for($i=1;$i<=$n;$i++) { if($i % 2 == 0 )continue; $c += substr_count($i, 1); } echo $c . "\n";
You have javascript disabled. You will not be able to edit any code.