Exemple #1
0
int main() {
	char s[] = "acbbcaa";
	char t[] = "ca";
	int ans=numDistinct(s, t);
	printf("ans=%d\n",ans);
	return 0;
}
Exemple #2
0
int main(int argc, char *argv[])
{
    char s[] = "aacaacca";
    char t[] = "ca";
    printf("%d\n", numDistinct(s, t));
    return 0;
}
int main(int argc, char const *argv[])
{
	string S = "avsfddddda";
	string T = "avsfda";

	cout<<S<<endl<<T<<endl<<numDistinct(S,T)<<endl;
	return 0;
}