Relative Frequency by teebee(klapaucius)

fn main(){for io::stdin().each_line|l|{print(fmt!("0.%06u
",((l.to_bytes().count(&l[0])-1)*2000000/(l.len()-2)+1)/2))}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page