import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) n, m = list(map(int, input().split())) s1, s2 = input(), input() # 方法一:普通写法,空间复杂度为 O(mn) # dp = [[0]*m for _ in range(n)] # for i in range(n): # if s1[i] == s2[0]: # dp[i][0] = 1 # for j in ...