summaryrefslogtreecommitdiffstats
path: root/HAMM.rs
blob: a1b2afe8a2f7432585a9470fcb9d3aac14787573 (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();
    assert str::len(dna1) == str::len(dna2);

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