1 #include<iostream> 2 using namespace std; 3 void main() 4 { 5 int a,b; 6 while(~scanf("%x%x",&a,&b)) 7 printf("%d\n",a+b); 8 }
//A, B are hexadecimal number.
【推荐】AI 的力量,开发者的翅膀:欢迎使用 AI 原生开发工具 TRAE
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步