JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

P1100 高低位交换

发布时间 2023-09-26 16:09:54作者: 不o凡

P1100 高低位交换
简单位运算

点击查看代码
#include<bits/stdc++.h>
using namespace std;
int main() {
	unsigned long long n;
	cin >> n;
	cout << (((n & 0x0000ffff) << 16) | (n&0xffff0000)>>16);
	return 0;
}
    本栏目推荐文章
  • C语言中这几种数组,弄明白了吗?int(*pai[2])[5],int *aapi[2][2], int **p[2], int *numT[5], int(*num2)[5]
  • 聊聊ChatGLM中P-tuning v2的应用
  • P1164-小A点菜
  • Programming Abstractions in C阅读笔记:p242-p245
  • P1990-覆盖墙壁
  • 评估一个框架的资源消耗高低
  • P9194 [USACO23OPEN] Triples of Cows P 题解
  • P7816/CF1610F「Stoi2029」以父之名 题解
  • *p++、(*p)++、*++p、++*p的区别
  • USACO23DEC P
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们