1772: [编程入门]二进制移位练习 摘要:```c#includeint main() { int a; scanf("%d",&a); printf("%d",(a>>4)&15); re…… 题解列表 2025年03月18日 0 点赞 0 评论 100 浏览 评分:0.0
1772: [编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:def two_to_ten(m): j = 0 sum =0 for i in str(m)[::-1]: sum +=…… 题解列表 2021年12月29日 1 点赞 0 评论 197 浏览 评分:0.0
编写题解 1772: [编程入门]二进制移位练习 摘要:解题思路:题目不难,就是转完而精致再转回来,但是题目的描述有点恶心注意事项:注意题目中说的是从右端开始的第四到第七位,但是截取出来的数字还是要求从左往右计算的。我注释了很多测试代码,直到最后面看了其他…… 题解列表 2021年11月26日 0 点赞 0 评论 264 浏览 评分:0.0
【C语言】十进制转二进制(字符存储) 摘要:## 转换方法 #### 十进制转二进制:  #### 二进制转十进制:  { Scann…… 题解列表 2022年02月08日 0 点赞 0 评论 122 浏览 评分:0.0
Hifipsysta-1772-[编程入门]二进制移位练习(C++代码)手写二进制转换 摘要:```cpp #include #include #include #include using namespace std; int main(){ vector myve…… 题解列表 2022年02月11日 0 点赞 0 评论 161 浏览 评分:0.0
1772: [编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a; scanf("%d", &a); printf("%d\n", (a >> …… 题解列表 2022年02月20日 0 点赞 0 评论 190 浏览 评分:0.0
1772: [编程入门]二进制移位练习题解,利用移位运算(C代码) 摘要:解题思路:1.输入整数2.向右移4位,使4-7变成了0-33.与二进制1111(即0x0f)相与,除0-3位外都为04.输出注意事项:参考代码:#include <stdio.h> int ma…… 题解列表 2021年05月31日 0 点赞 0 评论 298 浏览 评分:0.0
[编程入门]二进制移位练习 摘要:解题思路:运用位移和与运算符。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d…… 题解列表 2022年05月05日 0 点赞 0 评论 158 浏览 评分:0.0
[编程入门]二进制移位练习-题解(Python代码) 摘要:解题思路:注意事项:参考代码:def binary(d): s = "" while d > 0: s = str(d % 2) + s d //= 2 …… 题解列表 2020年07月23日 0 点赞 0 评论 384 浏览 评分:0.0