- ACM
【关于各种进制转换的方法】
- 2024-11-8 16:39:32 @
4 comments
-
邱梓洋 LV 7 @ 2024-11-10 14:06:25
集训的东西你是不是都要发一遍?
-
2024-11-9 14:06:51@
#include<stdio.h> char value[] = "0123456789ABCDEF"; void convert(int x, int y) { if(x == 0) { return; } short t = x % y; convert(x / y, y); printf("%c",value[t]); return; } int main() { int n,m; scanf("%d%d",&n,&m); if(n == 0) { printf("0"); return 0; } convert(n, m); return 0; }
🤡 1 -
2024-11-8 16:48:13@
同学们可以学习一下,练习一下习题
🤡 2 -
2024-11-8 16:39:59@
练习题:
🤡 4👎 1
- 1