#include <iostream> int main(int argc, char **argv){ int x; scanf("%x",&x); // 너무 어렵게 생각했다... 컴퓨터는 16진수로 받기 가능 printf("%d", x); return 0; }