京东第一道题
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int a = sc.nextInt();
sc.nextLine();
String str1 = sc.nextLine();
String str2 = sc.nextLine();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < a; i++) {
if (str1.charAt(i) == str2.charAt(i))
sb.append('0');
else
sb.append('1');
}
System.out.println(Integer.valueOf(sb.toString(), 2));
}
}
}
#京东##Java工程师#