题解 | 【模板】位运算Ⅱ ‖ 整体位移
【模板】位运算Ⅱ ‖ 整体位移
https://www.nowcoder.com/practice/3fb5a81504084bdeb86bf938f446250d
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int op,n,chi;
cin>>op>>n>>chi;
if(op==1)cout<<(n<<chi)<<endl;
else cout<<(n>>chi)<<endl;
}
return 0;
}
// 64 位输出请用 printf("%lld")

顺丰集团工作强度 382人发布