#include <iostream> #include <vector> using namespace std; string a, b; vector<char>res; int na, nb; void dfs(int la, int ra, int lb, int rb) { if(la > ra || lb > rb) return; int mid; for (int i = lb; i <= rb; i++) { if(b[i] == a[la]) { ...