#0: 10% AC (50ms, 3.7MB)#1: 20% AC (0.3s, 3.7MB)#2: 70% AC (1.4s, 19.4MB)
from sys import stdin, stdoutfrom collections import Counter
*** = o!B-.y@(a***p)for < in szbesd(==>, ---=+/=):!***we.+b7h&e((}.s-*//() + ' ') * ___[%])
d190方法類似可以拿去解
https://zerojudge.tw/ShowProblem?problemid=d190