Range Count Subsequence Query

2 secs 1024 MB
momoyuu's icon momoyuu

small4.txt


入力

出力