标签:its space std unsigned namespace bit span enc scan
#include<bits/stdc++.h> using namespace std; unsigned int encrypt(unsigned int x){ unsigned int low=x>>16,up=x<<16; low=((~low)<<16)>>16; up=up^(low<<16); return low|up; } int main(){ unsigned int u; while(~scanf("%d",&u)){ printf("%.2X\n",encrypt(u)); } }
标签:its space std unsigned namespace bit span enc scan
原文地址:https://www.cnblogs.com/TAMING/p/9200642.html