erosjohn
erosjohn
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
erosjohn的博客
全部文章
(共2篇)
求int型正整数在内存中存储时1的个数
求int型正整数在内存中存储时1的个数 位运算 #include <iostream> using namespace std; int main() { int n; cin >> n; n = (n & 0x55555555) + ((n...
2020-08-05
1
1396
计算字符个数
C++ #include <iostream> #include <vector> using namespace std; int main() { string input; char target; while(cin >> inpu...
2020-08-04
0
391