func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m, sum, ans;   int cnt[1000010], pre[1000010];   char a[1000010], b[1000010];   int main() {     scanf( %s%s , a + 1, b + 1);     n = strlen(a + 1);     m = strlen(b + 1);     for (int i = 1; i < n; i++)       if (a[i] != a[i + 1]) cnt[i] = 1;     for (int i = 1; i <= n; i++) pre[i] = pre[i - 1] + cnt[i];     for (int i = 1; i <= m; i++) {       if (a[i] != b[i]) sum++;     }     if (sum % 2 == 0) ans = 1;     for (int i = m + 1; i <= n; i++) {       sum += pre[i - 1] - pre[i - m - 1];       if (sum % 2 == 0) ans++;     }     printf( %d n , ans);     return 0;   }   