#include <iostream>
#include <bitset>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
bitset<100000>A,B;
cin>>A>>B;
cout<<(A&B)<<'\n';
cout<<(A|B)<<'\n';
cout<<(A^B)<<'\n';
cout<<(~A)<<'\n';
cout<<(~B)<<'\n';
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 1302๋ฒ - ๋ฒ ์คํธ์ ๋ฌ (0) | 2021.11.04 |
---|---|
[๋ฐฑ์ค,c++] 1292๋ฒ - ์ฝ๊ฒ ํธ๋ ๋ฌธ์ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 12851๋ฒ - ์จ๋ฐ๊ผญ์ง2 (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 12738๋ฒ - ๊ฐ์ฅ ๊ธด ์ฆ๊ฐํ๋ ๋ถ๋ถ ์์ด3 (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1264๋ฒ - ๋ชจ์์ ๊ฐ์ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1261๋ฒ - ์๊ณ ์คํ (0) | 2021.11.02 |
๋๊ธ