๋ฌธ์ ๋งํฌ : https://codeup.kr/problemsetsol.php?psid=23
*1059๋ฒ
#include <iostream>
using namespace std;
int main(){
int a;
cin >> a;
cout << (~a); // ~ : ๋นํธ๋จ์ not ์ฐ์ฐ
}
~ : ๋นํธ๋จ์ not ์ฐ์ฐ
*1060๋ฒ
#include <iostream>
using namespace std;
int main(){
int a,b;
cin >> a>>b;
cout << (a&b); //& : ๋นํธ๋จ์ and ์ฐ์ฐ
}
& : ๋นํธ๋จ์ and ์ฐ์ฐ
*1061๋ฒ
#include <iostream>
using namespace std;
int main(){
int a,b;
cin >> a>>b;
cout << (a|b); //| : ๋นํธ๋จ์ or ์ฐ์ฐ
}
| : ๋นํธ๋จ์ or ์ฐ์ฐ
*1062๋ฒ
#include <iostream>
using namespace std;
int main(){
int a,b;
cin >> a>>b;
cout << (a^b); //^ : ๋นํธ๋จ์ xor ์ฐ์ฐ
}
^ : ๋นํธ๋จ์ xor ์ฐ์ฐ
*ํ์ด์ฌ ํ์ด๋ code up ์นดํ
๊ณ ๋ฆฌ์ ์์ต๋๋ค.