水牛不喝水
水牛不喝水
全部文章
分类
题解(10)
归档
标签
去牛客网
登录
/
注册
水牛不喝水的博客
全部文章
(共2篇)
题解 | #求int型正整数在内存中存储时1的个数#
看完题目手底下不用停可以写完的一道题,舒服了 #include<stdio.h> int main(){ int n,sum=0; scanf("%d",&n); while(n){ if(n%2==1) sum++...
C
数组
2022-01-15
0
183
题解 | HJ3:C#明明的随机数#
思路:1.输入数据;2.删除重复数据;3.用快速排序重新排列。 #include<stdio.h> #include<string.h> void swap(int *a, int x, int y){ int tmp=a[y]; a[y]=a[x]; a[x]=tm...
C
数组
2021-12-31
1
728