Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

20
XSMOJ/位运算符.cpp Normal file
View File

@ -0,0 +1,20 @@
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int a,b,c,d,e,f,g,h;
cin >>a>>b;
c=a&b;
d=a|b;
e=a^b;
f=~a;
cout <<"a&b="<<c<<endl;
cout <<"a|b="<<d<<endl;
cout <<"a^b="<<e<<endl;
cout <<"~a="<<f<<endl;
cout <<"a<<b="<<(a<<b)<<endl;
cout <<"a>>b="<<(a>>b)<<endl;
return 0;
}