cf/mirror

Count the Number of Pairs

CF
1800B1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
11 2
aAaaBACacbE
2 2
ab
4 1
aaBB
6 0
abBAcC
5 3
cbccb
Output
5
0
1
3
2
1800B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)