Range Count Subsequence Query

2 secs 1024 MB
momoyuu's icon momoyuu

small1.txt


入力

出力