int res, x;
while (x){
res = res * 10 + x % 10;
x /= 10;
}
对一个数取反
最新推荐文章于 2023-01-16 15:02:05 发布
int res, x;
while (x){
res = res * 10 + x % 10;
x /= 10;
}