Skip to content

Circular DNA

Unrated
English

Language

Contribute a translation
Time limit
3000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Circular DNA, original English page 1

Circular DNA, original English page 2

Examples

Sample input 1
9
e1 e1 s1 e2 s1 s2 e42 e1 s1
Sample output 1
3 1
Sample input 2
8
s1 s1 e3 e1 s3 e1 e3 s3
Sample output 2
8 2

Tags

No tags yet

Source