Range Count Subsequence Query

2 secs 1024 MB
momoyuu's icon momoyuu

small3.txt


入力

出力