1 #include<cstdio> 2 int main(){ 3 char str[13] = {‘0‘,‘1‘,‘2‘,‘3‘,‘4‘,‘5‘,‘6‘,‘7‘,‘8‘,‘9‘,‘A‘,‘B‘,‘C‘}; 4 int a, b, c; 5 scanf("%d %d %d", &a, &b, &c); 6 printf("#"); 7 printf("%c%c",str[a/13], str[a%13]); 8 printf("%c%c",str[b/13], str[b%13]); 9 printf("%c%c",str[c/13], str[c%13]); 10 return 0; 11 }
原文地址:https://www.cnblogs.com/zjsaipplp/p/10415793.html
时间: 2024-11-02 18:13:43