import sys from collections import defaultdict from bisect import bisect_left s = sys.stdin.readline().strip() a = sys.stdin.readline().strip() def getIdx(s, a): ch2indices = defaultdict(list) for i, ch in enumerate(s): ch2indices[ch].append(i) for ch in a: if ch not ...