Skip to content

Mutating DNA

UnratedFunction
English

Language

Contribute a translation
Time limit
1000 ms
Memory limit
2048 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Mutating DNA: original English statement, page 1

Mutating DNA: original English statement, page 2

Examples

Sample input 1
6 3
ATACAT
ACTATA
1 3
4 5
3 5
Sample output 1
2
1
-1

Tags

No tags yet

Source

This problem accepts only these languages.

C++20