summaryrefslogtreecommitdiffstats
path: root/HAMM.rs
blob: 7cea27d2a6651c095d363950f06bce950aef1ade (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
extern mod rosalind;
use rosalind::io::input_line;
use rosalind::str::hamming;

fn main() {
    let dna1 = input_line();
    let dna2 = input_line();
    fail_unless!(str::len(dna1) == str::len(dna2));

    io::println(fmt!("%d", hamming(dna1, dna2)));
}