buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
s = input() t = input() a = 0 for i in range(len(s)): if s[i] == t[i]: a += 1 print(a)
s = input() t = input() a = 0 for i in range(len(s)): if not s[i] == t[i]: a += 1 print(a)
[["+", 0, 7, 8, 196, 0, 57, 15, 681, 0, 372]]
5
42
print(sum([s != t for s, t in zip(input().split())]))
print(sum([s != t for s, t in zip(input(), input())]))
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 658, 0, 659, 12, 652, 3, 4, 0, 21], ["+", 0, 659, 12, 652, 3, 4, 0, 652, 63, 22]]
5
26
S = gets.chomp.split(" ") T = gets.chomp.split(" ") ans = 0 S.size.times do |i| ans += 1 if S[i] != T[i] end puts ans
S = gets.chomp.split("") T = gets.chomp.split("") ans = 0 S.size.times do |i| ans += 1 if S[i] != T[i] end puts ans
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
4
52
s=input() t=input() print(sum([1 for index,char in enumerate(s) if p[index]!=char]))
s=input() t=input() print(sum([1 for index,char in enumerate(s) if t[index]!=char]))
[["-", 0, 658, 0, 678, 0, 666, 0, 206, 51, 22], ["+", 0, 658, 0, 678, 0, 666, 0, 206, 51, 22]]
5
35
#include <bits/stdc++.h> #define DEBUG using namespace std; template <class T> void print_vect(std::vector<T> v) { for (int i = 0; i < v.size(); i++) cout << v[i] << " "; cout << endl; } void solve() { std::string S, T; cin >> S >> T; uint32_t count = 0; for (uint32_t i = 0; i < S.size(); i++) { ...
#include <bits/stdc++.h> //#define DEBUG using namespace std; template <class T> void print_vect(std::vector<T> v) { for (int i = 0; i < v.size(); i++) cout << v[i] << " "; cout << endl; } void solve() { std::string S, T; cin >> S >> T; uint32_t count = 0; for (uint32_t i = 0; i < S.size(); i++) { ...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22]]
1
180
S = input() T = input() a = o for i in len(S): if S[i] != T[i]: a += 1 print(a)
S = input() T = input() a = 0 for i in range(len(S)): if S[i] != T[i]: a += 1 print(a)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
39
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int len = s.size(), ctr = 0; for (int i = 0; i < len; i++) { if (s.at(i) == t.at(i)) { ctr++; } } cout << ctr; }
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int len = s.size(), ctr = 0; for (int i = 0; i < len; i++) { if (s.at(i) != t.at(i)) { ctr++; } } cout << ctr; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
77
k=list(input()) m=list(input()) ams=0 for i in (len(k)): if(k[i]!=m[i]): ams+=1 print(ams)
k=list(input()) m=list(input()) ams=0 for i in range(len(k)): if(k[i]!=m[i]): ams+=1 print(ams)
[["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22]]
5
49
from sys import stdin s=stdin.readline() t=sdtin.readline() count=0 for i in range(len(s)): if s[i]!=t[i]: count+=1 print(count)
from sys import stdin s=stdin.readline() t=stdin.readline() count=0 for i in range(len(s)): if s[i]!=t[i]: count+=1 print(count)
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22]]
5
50
#include <bits/stdc++.h> using namespace std; void solve() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) ans++; } cout << ans; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long t = 1; cin >> t; whil...
#include <bits/stdc++.h> using namespace std; void solve() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) ans++; } cout << ans; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long t = 1; // cin>>t; whi...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
118
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(), t = sc.next(); int diffCount = 0; for (int i = 0; i < args.length; i++) { if (s.charAt(i) != t.charAt(i)) ++diffCount; } System.out.p...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(), t = sc.next(); int diffCount = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) != t.charAt(i)) ++diffCount; } System.out.pr...
[["-", 8, 196, 0, 7, 15, 16, 12, 509, 500, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 492, 500, 22], ["+", 0, 7, 15, 16, 12, 492, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 492, 3, 4, 0, 25]]
3
109
str_a,str_b = gets.split str_length = str_a.length same_character_num = 0 str_length.times do |i| if str_a[i] == str_b[i] same_character_num += 1 end end result = str_length - same_character_num puts result
str_a = gets str_b = gets str_length = str_a.length same_character_num = 0 str_length.times do |i| if str_a[i] == str_b[i] same_character_num += 1 end end result = str_length - same_character_num puts result
[["-", 36, 36, 0, 493, 0, 662, 31, 761, 0, 21], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 22], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
44
#include <bits/stdc++.h> using namespace std; #define int long long #define mp make_pair #define pb push_back #define pii pair<int, int> #define vi vector<int> // #define vb vector<bool> // #define vc vector<char> #define vii vector<pii> //#define mi map<int,int> //#define mii map<pii...
#include <bits/stdc++.h> using namespace std; #define int long long #define mp make_pair #define pb push_back #define pii pair<int, int> #define vi vector<int> // #define vb vector<bool> // #define vc vector<char> #define vii vector<pii> //#define mi map<int,int> //#define mii map<pii...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
308
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define N 1000005 typedef long long int ll; // int n,m; // vector<int> adj[mx]; //---dfs-- // bool visited[mx]; // vector<int> val(n,0); // void dfs(int s, int & cnt_vert, int & cnt_edge){ // assert(!visited[s]); // visited[s]=true; // ++cnt_vert...
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define N 1000005 typedef long long int ll; // int n,m; // vector<int> adj[mx]; //---dfs-- // bool visited[mx]; // vector<int> val(n,0); // void dfs(int s, int & cnt_vert, int & cnt_edge){ // assert(!visited[s]); // visited[s]=true; // ++cnt_vert...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
196
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int count = 0; for (int i = 0; i < s.length(); i++) { if ((s.charAt(i)) == (t.charAt(i))) { count++; } } S...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int count = 0; for (int i = 0; i < s.length(); i++) { if ((s.charAt(i)) == (t.charAt(i))) { count++; } } S...
[["+", 0, 492, 3, 4, 0, 16, 31, 492, 500, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 0, 131], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 25], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 33]]
3
111
S = list(input()) T = list(input()) ans = 0 for i in range(len(S)): ans += (S[i]==T[i]) print(ans)
S = list(input()) T = list(input()) ans = 0 for i in range(len(S)): ans += (S[i]!=T[i]) print(ans)
[["-", 0, 1, 0, 677, 12, 23, 0, 666, 667, 60], ["+", 0, 1, 0, 677, 12, 23, 0, 666, 667, 79]]
5
47
s = input() t = input() ans = 0 for i in range(len(s)): ans += 1 if s[i] == t[i] else 0 print(ans)
s = input() t = input() ans = 0 for i in range(len(s)): ans += 1 if s[i] != t[i] else 0 print(ans)
[["-", 0, 1, 0, 677, 12, 41, 0, 666, 667, 60], ["+", 0, 1, 0, 677, 12, 41, 0, 666, 667, 79]]
5
43
#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int n = a.length(); int ans = 0; for (int i = 0; i < n; ++i) ans += (a[i] == b[i]); cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int n = a.length(); int ans = 0; for (int i = 0; i < n; ++i) ans += (a[i] != b[i]); cout << ans; return 0; }
[["-", 8, 1, 0, 11, 12, 23, 0, 16, 17, 60], ["+", 8, 1, 0, 11, 12, 23, 0, 16, 17, 79]]
1
72
#include <stdio.h> #include <string.h> int str_length(const char s[]) { int len = 0; while (s[len]) len++; return len; } int main(void) { char S[200000]; char T[200000]; scanf("%s%s", S, T); int n = str_length(S); int wa = 0; for (int i = 0; i < n; i++) { if ("S[i]" == "T[i]") { wa++...
#include <stdio.h> #include <string.h> int str_length(const char s[]) { int len = 0; while (s[len]) len++; return len; } int main(void) { char S[200001]; char T[200001]; scanf("%s%s", S, T); int n = str_length(S); int wa = 0; for (int i = 0; i < n; i++) { if (S[i] == T[i]) { wa++; ...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 57, 15, 23, 0, 16, 31, 5, 0, 62], ["-", 0, 57, 15, 23, 0, 16, 31, 5, 0, 6], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 28, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 22], ["+", 0, 57, 1...
0
121
def main(): s=input() t=input() res=0 for i in range(len(s)): if(s[i]==t[i]): res+=1 print(res) if __name__ == '__main__': main()
def main(): s=input() t=input() res=0 for i in range(len(s)): if(s[i]!=t[i]): res+=1 print(res) if __name__ == '__main__': main()
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 79]]
5
59
#include <bits/stdc++.h> using namespace std; string s, t; int main() { ios_base::sync_with_stdio(false); cin >> s, t; int c = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) c++; } cout << c; }
#include <bits/stdc++.h> using namespace std; string s, t; int main() { ios_base::sync_with_stdio(false); cin >> s >> t; int c = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) { c++; } } cout << c; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
1
74
#include <iostream> #include <string> using namespace std; int main() { string S, T; int i; cin >> S >> T; int N = S.size(), count = 0; for (i = 0; i < N; i++) { if (S[i] != T[i]) count; } cout << count << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { string S, T; int i; cin >> S >> T; int N = S.size(), count = 0; for (i = 0; i < N; i++) { if (S[i] != T[i]) count++; } cout << count << endl; return 0; }
[["+", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29]]
1
79
a=input() b=input() c=0 for i in range(a): if(a[i]!=b[i]): c=c+1 print(c)
a=input() b=input() c=0 for i in range(len(a)): if(a[i]!=b[i]): c=c+1 print(c)
[["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
43
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) typedef long long ll; int main() { string S, T; cin >> S, T; ll ans = 0; for (ll i = 0; i < S.size(); ++i) { if (S[i] != T[i]) { ++ans; } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) typedef long long ll; int main() { string S, T; cin >> S >> T; ll ans = 0; for (ll i = 0; i < S.size(); ++i) { if (S[i] != T[i]) { ++ans; } } cout << ans << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
84
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main(void) { string s; string t; cin >> s; cin >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] = t[i]) ans++; } cout << ans << endl; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main(void) { string s; string t; cin >> s; cin >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) ans++; } cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
77
#include <bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(), (c).end()); #define pb push_back #define MP make_pair #define pii pair<int, int> #define pcc pair<char, char> #define pic pair<int, char> #define pci pair<char, int> #define VS vector<string> #define VI vector<int> #define pi 3.141592653589...
#include <bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(), (c).end()); #define pb push_back #define MP make_pair #define pii pair<int, int> #define pcc pair<char, char> #define pic pair<int, char> #define pci pair<char, int> #define VS vector<string> #define VI vector<int> #define pi 3.141592653589...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
420
s = input() t = input() a = 0 for i in range(len(s)): if s[i] == t[i]:a = a + 1 print(a)
s = input() t = input() a = 0 for i in range(len(s)): if s[i] != t[i]: a = a + 1 print(a)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
44
#include <algorithm> #include <iostream> #include <stdio.h> #include <string> using namespace std; string s, t; int main() { cin >> s >> t; int cnt = 1; for (int i = 0; i < s.length() - 1; i++) { if (s[i] != t[i]) cnt++; } cout << cnt << endl; return 0; }
#include <algorithm> #include <iostream> #include <stdio.h> #include <string> using namespace std; string s, t; int main() { cin >> s >> t; int cnt = 0; for (int i = 0; i <= s.length() - 1; i++) { if (s[i] != t[i]) cnt++; } cout << cnt << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
80
#include <stdio.h> int main(void) { int i, x = 0; char s[10000000000], t[10000000000]; scanf("%s", &s); scanf("%s", &t); for (i = 0; s[i] != '\0'; i++) { if (s[i] != t[i]) x++; } printf("%d", x); }
#include <stdio.h> int main(void) { int i, x = 0; char s[200001], t[200001]; scanf("%s", &s); scanf("%s", &t); for (i = 0; s[i] != '\0'; i++) { if (s[i] != t[i]) x++; } printf("%d", x); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
0
91
#include <bits/stdc++.h> using namespace std; signed main(void) { string s, t; int ans = 0; cin >> s >> t; for (int i = 0; i < s.size(); i++) if (s[i] != t[i]) ans++; return 0; }
#include <bits/stdc++.h> using namespace std; signed main(void) { string s, t; int ans = 0; cin >> s >> t; for (int i = 0; i < s.size(); i++) if (s[i] != t[i]) ans++; cout << ans; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
65
#include <iostream> #include <string> using namespace std; int main() { string a, b; int count = 0; getline(cin, a); getline(cin, b); for (int i = 0; i < a.length(); i++) { if (a[i] != b[i]) count++; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { string a, b; int count = 0; getline(cin, a); getline(cin, b); for (int i = 0; i < a.length(); i++) { if (a[i] != b[i]) count++; } cout << count; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
76
s,t = input(), input() a = 0 for i in range(len(s)): if s[i]==t[i]: a = a + 1 print(a)
s,t = input(), input() a = 0 for i in range(len(s)): if s[i]!=t[i]: a = a + 1 print(a)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
45
const int isDebugMode = 1; #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<long long, long long> P; struct edge { long long to, cost; }; const int inf = 1 << 27; const long long INF = 1LL << 60; const int COMBMAX = 1001001; const long long MOD = 1000000007; const long long dy[] = {-1,...
const int isDebugMode = 1; #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<long long, long long> P; struct edge { long long to, cost; }; const int inf = 1 << 27; const long long INF = 1LL << 60; const int COMBMAX = 1001001; const long long MOD = 1000000007; const long long dy[] = {-1,...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
752
a=[input() for i in range(2)] P=a[0] S=a[1] count=0 for t in range(0,len(P)-1): if P[t] != S[t]: count=count+1 print(count)
a=[input() for i in range(2)] P=a[0] S=a[1] count=0 for t in range(len(P)): if P[t] != S[t]: count=count+1 print(count)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
64
#include <bits/stdc++.h> //#include<pair> using namespace std; typedef long long ll; typedef int ii; typedef vector<int> vi; #define T while (t--) #define for2(i, a, b) for (i = a; i >= b; i--) #define for1(i, a, b) for (i = a; i < b; i++) #define pb push_back //#define mp make_pair ii main() { string s, t; ci...
#include <bits/stdc++.h> //#include<pair> using namespace std; typedef long long ll; typedef int ii; typedef vector<int> vi; #define T while (t--) #define for2(i, a, b) for (i = a; i >= b; i--) #define for1(i, a, b) for (i = a; i < b; i++) #define pb push_back //#define mp make_pair ii main() { string s, t; cin...
[["+", 0, 30, 0, 14, 8, 9, 0, 9, 0, 46], ["-", 0, 30, 0, 14, 8, 9, 0, 9, 0, 46]]
1
112
s=input() t=input() s.split() t.split() ans = 0 if s==t: print("0") for i in range(len(s)): if s[i]!=t[i]: ans += 1 print(ans)
s=input() t=input() s.split() t.split() ans = 0 if s==t: print("0") exit() for i in range(len(s)): if s[i]!=t[i]: ans += 1 print(ans)
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
63
#include <stdio.h> #include <string.h> int main() { char s[200000], t[200000]; int count = 0, i; scanf("%s", s[0]); scanf("%s", t[0]); for (i = 0; i <= strlen(s) - 1; i++) { if (s[i] != t[i]) { count++; } } printf("%d", count); return 0; }
#include <stdio.h> #include <string.h> int main() { char s[2000000], t[2000000]; int count = 0, i; scanf("%s", &s[0]); scanf("%s", &t[0]); for (i = 0; i <= strlen(s) - 1; i++) { if (s[i] != t[i]) { count++; } } printf("%d", count); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
101
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int i; int c = 0; char s[200001], t[200001]; scanf("%s", s); scanf("%s", t); for (i = 0; s[i] == '\0'; i++) { if (s[i] != t[i]) c++; } printf("%d", c); return 0; }
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int i; int c = 0; char s[200001], t[200001]; scanf("%s", s); scanf("%s", t); for (i = 0; s[i] != '\0'; i++) if (s[i] != t[i]) c++; printf("%d", c); return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 79], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
0
94
S = input() T = input() sum(S[i] != T[i] for i in range(len(S)))
S = input() T = input() print(sum(S[i] != T[i] for i in range(len(S))))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
32
#include <iostream> using namespace std; int main() { int result = 0; string S; string T; cin >> S >> T; for (int i = 0; i < sizeof(S); i++) { if (S[i] != T[i]) { result++; } } cout << result; }
#include <iostream> using namespace std; int main() { int result = 0; string S; string T; cin >> S >> T; for (unsigned int i = 0; i < S.size(); i++) { if (S[i] != T[i]) { result++; } } cout << result; }
[["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 87], ["-", 8, 9, 0, 7, 15, 16, 12, 105, 0, 150], ["-", 0, 7, 15, 16, 12, 105, 51, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 17, 131], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24]]
1
69
S = input() T = input() s = list(S) t = list(T) K = len(s) n=0 for i in range(0, K): if s[i] == t[i]: n+=1 else: pass print(n)
S = input() T = input() s = list(S) t = list(T) K = len(s) n=0 for i in range(0, K): if s[i] != t[i]: n+=1 else: pass print(n)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
62
a=o S=list(input()) T=list(input()) for i in range(len(S)): if S[i]!=T[i]: a=a+1 print(a)
a=0 S=list(input()) T=list(input()) for i in range(len(S)): if S[i]!=T[i]: a=a+1 print(a)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
50
s = input() t = input() x = len(s) z = 0 for i in range(x) : if s[i] == t[i] : z = z + 1 print(z)
s = input() t = input() x = len(s) z = 0 for i in range(x) : if s[i] != t[i] : z = z + 1 print(z)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
47
<?php $a = fgets(STDIN); $b = fgets(STDIN); $length = strlen($a); $result = 0; for($i=0; $i< $length; $i++) { if($a[$i] !== $b[$i]){ $result += 1; } } echo $result -1;
<?php $a = fgets(STDIN); $b = fgets(STDIN); $length = strlen($a); $result = 0; for($i=0; $i< $length; $i++) { if($a[$i] !== $b[$i]){ $result += 1; } } echo $result;
[["-", 36, 36, 0, 493, 0, 608, 0, 16, 17, 33], ["-", 36, 36, 0, 493, 0, 608, 0, 16, 12, 612]]
6
79
#include <iostream> #include <string> using namespace std; int main() { int x; int n = 0; string s; string t; cin >> s; cin >> t; x = s.length(); for (int i = 1; i <= x; i++) { if (s[i] != t[i]) { n += 1; } } cout << n << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { int x; int n = 0; string s; string t; cin >> s; cin >> t; x = s.length(); for (int i = 0; i < x; i++) { if (s[i] != t[i]) { n += 1; } } cout << n << endl; return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]]
1
87
s = input() t = input() st = list(s) ts = list(t) j = 0 for i in range(len(st)): if(st[i] == ts[i]): j = 0 elif(st[i] != ts[i]): ts[i] = st[i] j = j + 1 # print(st) # print(ts) print(j)
s = input() t = input() st = list(s) ts = list(t) j = 0 for i in range(len(st)): if(st[i] == ts[i]): j = j elif(st[i] != ts[i]): ts[i] = st[i] j = j + 1 # print(st) # print(ts) print(j)
[["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22]]
5
85
package main import ( "fmt" "strings" ) func main() { var s1, t1 string s := make([]string, 200000) t := make([]string, 200000) _, _ = fmt.Scan(&s1, &t1) s1 = strings.ToLower(s1) t1 = strings.ToLower(t1) s = strings.Split(s1, "") t = strings.Split(t1, "") a := 0 for i:=0; i<len(s); i++ { if s[i]!=t[i]...
package main import ( "fmt" "strings" ) func main() { var s1, t1 string s := make([]string, 200000) t := make([]string, 200000) _, _ = fmt.Scan(&s1, &t1) s1 = strings.ToLower(s1) t1 = strings.ToLower(t1) s = strings.Split(s1, "") t = strings.Split(t1, "") a := 0 for i:=0; i<len(s); i++ { if s[i]!=t[i] {...
[["-", 0, 435, 8, 196, 0, 1, 0, 2, 63, 22], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120]]
7
148
#include <iostream> #include <string> using namespace std; int main() { string s, t; int num = 0; cin >> s, t; for (int i = 0; i < (int)s.size(); ++i) { if (s[i] != t[i]) { num++; } } cout << num; }
#include <iostream> #include <string> using namespace std; int main() { string s, t; int num = 0; cin >> s >> t; for (int i = 0; i < (int)s.size(); ++i) { if (s[i] != t[i]) { num++; } } cout << num; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
74
s = input() t = input() result = len([_ for a,b in zip(s,t) if a != b]) print(result)
s = input() t = input() result = len([a for a,b in zip(s,t) if a != b]) print(result)
[["-", 0, 662, 12, 652, 3, 4, 0, 658, 8, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 658, 8, 22]]
5
37
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String s = sc.next(); int count = 0; for (int cnt = 0; cnt < n.length(); cnt++) { if (n.charAt(cnt) == s.charAt(cnt)) { count++; } } ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String s = sc.next(); int count = 0; for (int cnt = 0; cnt < n.length(); cnt++) { if (n.charAt(cnt) != s.charAt(cnt)) { count++; } } ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79]]
3
108
#include <iostream> #include <string> using namespace std; int main(void) { string S, T; cin >> S >> T; int len = S.size(), counter = 0; for (int i = 0; i < len; i++) { if (S[i] == T[i]) counter++; } cout << counter << endl; }
#include <iostream> #include <string> using namespace std; int main(void) { string S, T; cin >> S >> T; int len = S.size(), counter = 0; for (int i = 0; i < len; i++) { if (S[i] != T[i]) counter++; } cout << counter << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
76
#include <stdio.h> #include <string.h> int N = 200000; int main() { char s[N], t[N]; int count = 0, i, l; // gets(s); // gets(t); scanf("%s", &s); scanf("%t", &t); l = strlen(s); for (i = 0; i < l; i++) { if (s[i] != t[i]) { count++; } } printf("%d", count); return 0; }
#include <stdio.h> #include <string.h> int N = 400000; int main() { char s[N], t[N]; int count = 0, i, l; // gets(s); // gets(t); scanf("%s", s); scanf("%s", t); l = strlen(s); for (i = 0; i < l; i++) { if (s[i] != t[i]) { count++; } } printf("%d", count); return 0; }
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
108
# -*- coding: utf-8 -*- S = list(input()) T = list(input()) total = 0 for num in range(len(S)): if S[num] == T[num]: total +=1 print(total)
# -*- coding: utf-8 -*- S = list(input()) T = list(input()) total = 0 for num in range(len(S)): if S[num] != T[num]: total += 1 print(total)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
49
<?php // Your code here! $S = fgets(STDIN); $T = fgets(STDIN); $arrS = str_split($S); $arrT = str_split($T); $str_diff = array_diff($arrS, $arrT); $diff_count = count($str_diff); echo $diff_count; ?>
<?php // Your code here! $S = fgets(STDIN); $T = fgets(STDIN); $arrS = str_split($S); $arrT = str_split($T); $str_diff = array_diff_assoc($arrS, $arrT); $diff_count = count($str_diff); echo $diff_count; ?>
[["-", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141]]
6
62
#include <bits/stdc++.h> using namespace std; int main() { string S; string T; cin >> S; cin >> T; int counter = 0; for (int i = 1; i < S.size(); i++) { if (S.at(i) != T.at(i)) { ++counter; } } cout << counter << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; string T; cin >> S; cin >> T; int counter = 0; for (int i = 0; i < S.size(); i++) { if (S.at(i) != T.at(i)) { ++counter; } } cout << counter << endl; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
78
S = input() T = input() res = sum(1 if s == t else 0 for s, t in zip(S,T)) print(res)
S = input() T = input() res = sum(0 if s == t else 1 for s, t in zip(S,T)) print(res)
[["-", 0, 662, 12, 652, 3, 668, 8, 41, 0, 612], ["+", 0, 662, 12, 652, 3, 668, 8, 41, 0, 612]]
5
37
s=input() t=input() l=len(s) count=0 if(s==t): break else: for i in range(l): if(s[i]==t[i]): continue else: count+=1 print(count)
s=input() t=input() l=len(s) count=0 if(s==t): print(count) else: for i in range(l): if(s[i]==t[i]): continue else: count+=1 print(count)
[["-", 0, 656, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
60
#include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; int n = (int)S.size(); int ans = 0; for (int i = 0; i < n; i++) { if (S[i] == T[i]) ans++; } cout << ans << endl; }
#include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; int n = (int)S.size(); int ans = 0; for (int i = 0; i < n; i++) { if (S[i] != T[i]) ans++; } cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
79
def MinorChange(): str1 = str(input()) str2 = str(input()) data = [] for num in range(len(str1)): if str1[num] != str2[num]: data.append(str2[num]) print(len(list(set(data)))) if __name__ == '__main__': MinorChange()
def MinorChange(): str1 = str(input()) str2 = str(input()) data = [] for num in range(len(str1)): if str1[num] != str2[num]: data.append(str2[num]) print(len(data)) if __name__ == '__main__': MinorChange()
[["-", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
79
S = input() T = input() len([x for x in map(set, zip(S, T)) if len(x) == 2])
S = input() T = input() print(len([x for x in map(set, zip(S, T)) if len(x) == 2]))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
37
S = input() T = input() num = 0 for s,t in zip(S,T): if s != t: num +=1
S = input() T = input() num = 0 for s,t in zip(S,T): if s != t: num +=1 print(num)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
33
S = list(input()) T = list(input()) count = 0 for s,t in zip(S,T): if s != t: count += 1
S = list(input()) T = list(input()) count = 0 for s,t in zip(S,T): if s != t: count += 1 print(count)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
39
s = gets.chomp t = gets.chomp puts s.chars.zip(t.chars).collect { |a, b| a != b }.length
s = gets.chomp t = gets.chomp puts s.chars.zip(t.chars).reject { |a, b| a == b }.length
[["-", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22], ["+", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22], ["-", 486, 652, 196, 196, 8, 734, 0, 738, 17, 79], ["+", 486, 652, 196, 196, 8, 734, 0, 738, 17, 60]]
4
35
# coding: utf-8 str_s = input() str_t = input() str_len = len(str_s) str_match_cnt = 0 st_converter = lambda s,t : s == t for i in range(str_len): if st_converter(str_s[i], str_t[i]): str_match_cnt += 1 print(str_match_cnt)
# coding: utf-8 str_s = input() str_t = input() str_len = len(str_s) str_match_cnt = 0 st_converter = lambda s,t : s == t for i in range(str_len): if not st_converter(str_s[i], str_t[i]): str_match_cnt += 1 print(str_match_cnt)
[["+", 0, 7, 8, 196, 0, 57, 15, 681, 0, 372]]
5
59
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int len = s.length(); int cnt = 0; for (int i = 0; i < len; i++) { if (s[i] == t[i]) cnt++; } cout << cnt; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int len = s.length(); int cnt = 0; for (int i = 0; i < len; i++) { if (s[i] != t[i]) cnt++; } cout << cnt; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
75
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int a = 0; for (int i = 0; i < S.size(); i++) { if (S.at(i) == T.at(i)) { a++; } else { continue; } } cout << a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int a = 0; for (int i = 0; i < S.size(); i++) { if (S.at(i) != T.at(i)) { a++; } else { continue; } } cout << a << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
80
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String T = sc.nextLine(); String[] Ss = S.split(""); String[] Ts = T.split(""); int count = 0; for (int i = 0; i < Ss.length; i++) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String T = sc.nextLine(); String[] Ss = S.split(""); String[] Ts = T.split(""); int count = 0; for (int i = 0; i < Ss.length; i++) { ...
[["+", 8, 196, 0, 57, 15, 15, 0, 91, 17, 111]]
3
131
s=input() t=input() l=len(s) a=0 for i in range(l-1): if s[i]==t[i]: pass else: a+=1 print(a)
s=input() t=input() l=len(s) a=0 for i in range(l): if s[i]==t[i]: pass else: a+=1 print(a)
[["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
50
#include <bits/stdc++.h> using namespace std; int main() { string S; string T; cin >> S; cin >> T; int ans = 0; for (int i = 1; i < S.length(); i++) { char s = S[i - 1]; char t = T[i - 1]; if (s == t) ; else ans++; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S; string T; cin >> S; cin >> T; int ans = 0; for (int i = 1; i < (S.length() + 1); i++) { char s = S[i - 1]; char t = T[i - 1]; if (s == t) ; else ans++; } cout << ans << endl; }
[["+", 8, 9, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 12, 13]]
1
88
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; cin >> S >> T; int N = S.size(); int sum = 0; if (S == T) { cout << 0 << endl; } else { for (int i = 0; i < N; i++) { if (S.at(i) != T.at(i)) { sum++; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; cin >> S >> T; int N = S.size(); int sum = 0; if (S == T) { cout << 0 << endl; } else { for (int i = 0; i < N; i++) { if (S.at(i) != T.at(i)) { sum++; ...
[["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
112
S = input() T = input() replaces = 0 for ch in range(S): if S[ch] == T[ch]: replaces += 1 print(replaces)
S = input() T = input() replaces = 0 for ch in range(len(S)): if S[ch] != T[ch]: replaces += 1 print(replaces)
[["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
39
s = input() t = input() ans = 0 i = 0 while i < len(s): if s[i] == t[i]: ans += 1 i += 1 print(ans)
s = input() t = input() ans = 0 i = 0 while i < len(s): if s[i] != t[i]: ans += 1 i += 1 print(ans)
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 79]]
5
45
a = input() b = input() c = len(a) d = list(a) e = list(b) count = 0 for i in range(c): if d[i] == e[i]: count += 1 print(count)
a = input() b = input() c = len(a) d = list(a) e = list(b) count = 0 for i in range(c): if d[i] != e[i]: count += 1 print(count)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
57
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int cnt = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) cnt++; cout << cnt << endl; } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int cnt = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) cnt++; } cout << cnt << endl; }
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
74
a, b = input().split() count = 0 for i in range(len(a)): if (a[i]!= b[i]): count += 1 print(count)
a = input() b = input() count = 0 for i in range(len(a)): if (a[i]!= b[i]): count += 1 print(count)
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
45
s=list(input()) t=list(input()) cnt=0 for i,e in zip(s,t): print(i,e) if i != e: cnt+=1 print(cnt)
s=list(input()) t=list(input()) cnt=0 for i,e in zip(s,t): if i != e: cnt+=1 print(cnt)
[["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
49
#include "bits/stdc++.h" #include <algorithm> #include <math.h> #include <vector> using namespace std; int64_t i, j, k; // preparation for int main() { string s, t; int64_t p; p = 0; cin >> s >> t; for (i = 0; i < s.length(); i++) { if (s[i] == t[i]) { p += 1; } } cout << p; return 0; }
#include "bits/stdc++.h" #include <algorithm> #include <math.h> #include <vector> using namespace std; int64_t i, j, k; // preparation for int main() { string s, t; int64_t p; p = 0; cin >> s >> t; for (i = 0; i < s.length(); i++) { if (s[i] != t[i]) { p += 1; } } cout << p; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
90
#include <iostream> using namespace std; int main() { string S, T; int count = 0; cin >> S >> T; for (int i = 0; i < S.size() - 1; i++) { if (S.at(i) != T.at(i)) { count++; } } cout << count << endl; }
#include <iostream> using namespace std; int main() { string S, T; int count = 0; cin >> S >> T; for (int i = 0; i < S.size(); i++) { if (S.at(i) != T.at(i)) { count++; } } cout << count << endl; }
[["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]]
1
77
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int n, ans; cin >> S >> T; n = S.size(); vector<int> vec(n); for (int i = 0; i < n; i++) { if (S.at(i) == T.at(i)) { vec.at(i) = 1; } else { vec.at(i) = 0; } } ans = 0; for (int j = 0; j < n; j++) { an...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int n, ans; cin >> S >> T; n = S.size(); vector<int> vec(n); for (int i = 0; i < n; i++) { if (S.at(i) == T.at(i)) { vec.at(i) = 1; } else { vec.at(i) = 0; } } ans = 0; for (int j = 0; j < n; j++) { an...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33]]
1
137
s = input() t = input() dif = 0 for _ in range(len(s)): if s[0] != t[0]: dif += 1 print(dif)
s = input() t = input() dif = 0 for i in range(len(s)): if s[i] != t[i]: dif += 1 print(dif)
[["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22]]
5
42
#include <iostream> #include <string> using namespace std; int main(void) { string input_1, input_2; long long counts = 0; cin >> input_1 >> input_2; for (int i = 0; i < input_1.length(); i++) { if (input_1 != input_2) { counts++; } } cout << counts << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main(void) { string input_1, input_2; long long counts = 0; cin >> input_1 >> input_2; for (int i = 0; i < input_1.length(); i++) { if (input_1[i] != input_2[i]) { counts++; } } cout << counts << endl; return 0; }
[["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 73]]
1
72
S=input() T=input() count=list(range(0,len(S))) print(count) c=0 for i in count: if S[i] != T[i]: c+=1 else: continue print(c)
S=input() T=input() count=list(range(0,len(S))) c=0 for i in count: if S[i] != T[i]: c+=1 else: continue print(c)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
57
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define OUT(s) cout << s << "\n"; #define length(a) sizeof(a) / sizeof(a[0]); using namespace std; // https://atcoder.jp/contests/abc172 string S, T; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define OUT(s) cout << s << "\n"; #define length(a) sizeof(a) / sizeof(a[0]); using namespace std; // https://atcoder.jp/contests/abc172 string S, T; ...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
153
#include <stdio.h> #include <stdlib.h> #include <string.h> #define kLENGTH 200000 int main() { int leng, sum = 0; char S[kLENGTH], T[kLENGTH]; scanf("%s", S); scanf("%s", T); leng = strlen(S); for (int i = 0; i < leng; i++) { if (S[i] == T[i]) { sum++; } } printf("%d\n", sum); return ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define kLENGTH 2000000 int main() { int leng, sum = 0; char S[kLENGTH], T[kLENGTH]; scanf("%s", S); scanf("%s", T); leng = strlen(S); for (int i = 0; i < leng; i++) { if (S[i] != T[i]) { sum++; } } printf("%d\n", sum); return...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79]]
0
104
a = input() b = input() c = 0 d = 0 for i in a: if b[c] == i: d = d+1 c=c+1 else: c=c+1 print(d)
a = input() b = input() c = 0 d = 0 for i in a: if b[c] != i: d = d+1 c=c+1 else: c=c+1 print(d)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
50
s = input() t = input() l = len(s) c = 0 for i in range(0, l): if s[i]==t[i]: c+=1
s = input() t = input() l = len(s) c = 0 for i in range(0, l): if s[i]!=t[i]: c+=1 print(c)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
43
#include <bits/stdc++.h> using namespace std; int main() { string a, b; int n = 0; cin >> a >> b; for (int i = 0; i < a.size(); i++) { if (a != b) n++; } cout << n; }
#include <bits/stdc++.h> using namespace std; int main() { string a, b; int n = 0; cin >> a >> b; for (int i = 0; i < a.size(); i++) { if (a[i] != b[i]) n++; } cout << n; }
[["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 73]]
1
61
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; int A = 0; cin >> S >> T; rep(i, S.size()) { if (S.at(i) == T.at(i)) { A++; } } cout << A << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; int A = 0; cin >> S >> T; rep(i, S.size()) { if (S.at(i) == T.at(i)) { A++; } } cout << S.size() - A << endl; }
[["+", 31, 16, 12, 16, 31, 2, 63, 118, 28, 22], ["+", 31, 16, 12, 16, 31, 2, 63, 118, 17, 131], ["+", 31, 16, 12, 16, 31, 2, 63, 118, 119, 120], ["+", 31, 16, 12, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 16, 12, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33]]
1
76
#include <bits/stdc++.h> using namespace std; using ui = unsigned int; using ll = long long; using ull = unsigned long long; using str = string; using bl = bool; using ch = char; template <class T> using v = vector<T>; template <class T> using uset = unordered_set<T>; template <class T1, class T2> using umap = unorde...
#include <bits/stdc++.h> using namespace std; using ui = unsigned int; using ll = long long; using ull = unsigned long long; using str = string; using bl = bool; using ch = char; template <class T> using v = vector<T>; template <class T> using uset = unordered_set<T>; template <class T1, class T2> using umap = unorde...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
260
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Object o = run(); if (o != null) System.out.println(); } private static ArrayList<Integer> nScan(Scanner sc, int n) { ArrayList<Integer> al = new ArrayList<>(); for (int i = 0...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Object o = run(); if (o != null) System.out.println(o); } private static ArrayList<Integer> nScan(Scanner sc, int n) { ArrayList<Integer> al = new ArrayList<>(); for (int i = ...
[["+", 0, 57, 64, 1, 0, 492, 3, 4, 0, 22]]
3
213
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int p = 0; for (int i = 0; i < s.size(); i++) if (s[i] == t[i]) p++; cout << p << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int p = 0; for (int i = 0; i < s.size(); i++) if (s[i] != t[i]) p++; cout << p << endl; }
[["-", 0, 7, 8, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 79]]
1
67
S = input() T = input() ret = 0 for s, t in zip(S,T): if s==t: ret+=1 print(ret)
S = input() T = input() ret = 0 for s, t in zip(S,T): if s!=t: ret+=1 print(ret)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79]]
5
37
#include <bits/stdc++.h> using namespace std; int main() { string s, t; int cnt = 0; cin >> s; cin >> t; for (int i = 1; i < s.size(); i++) { if (s[i] != t[i]) { cnt++; } } cout << cnt; }
#include <bits/stdc++.h> using namespace std; int main() { string s, t; int cnt = 0; cin >> s; cin >> t; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) { cnt++; } } cout << cnt; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
71
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int ans; string s, t; cin >> s >> t; int x = s.size(); for (int i = 0; i < x; i++) { if (s.at(i) == t.at(i)) { ans++; } } cout << ans << endl; }
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int ans = 0; string s, t; cin >> s >> t; int x = s.size(); for (int i = 0; i < x; i++) { if (s.at(i) != t.at(i)) { ans++; } } cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
84
#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int kaunto = 0; for (int i = 0; i < a.size(); i++) { if (a.at(i) == b.at(i)) { kaunto += 1; } } cout << kaunto << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string a, b; cin >> a >> b; int kaunto = 0; for (int i = 0; i < a.size(); i++) { if (a.at(i) != b.at(i)) { kaunto += 1; } } cout << kaunto << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
76
#dt = {} for i in x: dt[i] = dt.get(i,0)+1 import sys;input = sys.stdin.readline inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()] s = input().strip() t = input().strip() ans = 0 for i in range(n): if s[i] != t[i]: ans += 1 print(ans)
#dt = {} for i in x: dt[i] = dt.get(i,0)+1 import sys;input = sys.stdin.readline inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()] s = input().strip() t = input().strip() n = len(s) ans = 0 for i in range(n): if s[i] != t[i]: ans += 1 print(ans)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
89
#include <bits/stdc++.h> using namespace std; #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <cstdlib> #include <iostream> #include <math.h> #include <numeric> #include <sstream> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i...
#include <bits/stdc++.h> using namespace std; #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <cstdlib> #include <iostream> #include <math.h> #include <numeric> #include <sstream> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i...
[["-", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 90], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
256
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == t[i]) { ans++; } } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != t[i]) { ans++; } } cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
71
#関数リスト import sys input = sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) s = input().rstrip() t = intput().rstrip() result = 0 for i in range(len(s)): if s[i] != t[i]: result += 1 print(result)
#関数リスト import sys input = sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) s = input().rstrip() t = input().rstrip() result = 0 for i in range(len(s)): if s[i] != t[i]: result += 1 print(result)
[["-", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22]]
5
111
#include "bits/stdc++.h" using namespace std; // wierd debugging stuff #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ...
#include "bits/stdc++.h" using namespace std; // wierd debugging stuff #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
651