#include <math.h> #include <stdio.h> #include <string.h> int main(){ char hex[34] = {0}; long long s; fgets(hex, sizeof(hex), stdin); int len = strlen(hex) - 1; hex[len] = '\0'; for(int i = 2; i<len; i++){ if(hex[i]>='0' && hex[i]<='9') ...