Hellishly Fast Common Subsequence#5473

Hellishly Fast Common Subsequence

1 segundo
256 megabytes
Difícil

Given two strings consisting of zeros and ones, find the length of their longest common subsequence.

Entrada

Two strings are given, each of length no more than .

Salida

Output a single number — the length of their longest common subsequence.

Ejemplos

Ejemplo 1

Loading
Loading