你占用了我昵称
你占用了我昵称
全部文章
题解
归档
标签
去牛客网
登录
/
注册
你占用了我昵称的博客
全部文章
/ 题解
(共1篇)
提高程序效率,用&1代替%2,用>>1代替/2,cup做与或移位操作比做取模乘除操作更快
#include <iostream> using namespace std; int main(){ int x; cin>>x; short res=0; while(x){ if(x&1){ ...
2020-08-06
2
594