voidsolve() { int cnt0 = 0, cnt1 = 0, ans = 0; int n; cin >> n; cin >> b + 1 >> f + 1; for (int i = 1; i <= n; i ++) { if (b[i] == '1') cnt0 ++; if (f[i] == '1') cnt1 ++; if (b[i] != f[i]) ans ++; } ans += abs(cnt0 - cnt1); cout << ans / 2 << '\n'; }
signedmain() { // ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int T; cin >> T; while (T --) solve(); return0; }