import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a, b;
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
String str = in.next();
a = Integer.parseInt(str, 16);
str = in.next();
b = Integer.parseInt(str, 16);
System.out.println(a + b);
}
}
}
注意点: 1、 如何接受输入的16进制数
2、如何将16进制数转换为10进制数