#T812. 基因相关性

基因相关性

Description

To determine the functional and structural similarity between gene sequences, it is often necessary to align several different DNA sequences to assess whether the aligned DNA sequences are related.

Now, we align two DNA sequences of the same length. A base pair is defined as the bases at the same position in the two DNA sequences. If the two bases in a base pair are identical, it is referred to as a matching base pair. The proportion of matching base pairs relative to the total number of base pairs is then calculated. If this proportion is greater than or equal to a given threshold, the two DNA sequences are considered related; otherwise, they are unrelated.

Input Format

There are three lines of input. The first line is the threshold used to determine whether the two DNA sequences are related. The subsequent two lines are the two DNA sequences (each with a length not exceeding 500).

Output Format

If the two DNA sequences are related, output "yes"; otherwise, output "no".

```input1 0.85 ATCGCCGTAAGTAACGGTTTTAAATAGGCC ATCGCCGGAAGTAACGGTCTTAAATAGGCC

```output1
yes

译文

CodesOnline