#includeint main(){ int n; scanf("%d",&n); int t; while(n--){ scanf("%x",&t); printf("%o\n",t); } return 0;}
这么简单?