Problem list
Log in
#r02979 · Online Judge > GoldOJ

Bitwise Operators

Bronze III 1.0 s 256 MB

Given two integers $a$ and $b$, print $a,&,b$, $a,|,b$, $a \oplus b$, $\sim a$, $a \ll b$, $a \gg b$, one per line.

Input

Two integers $a$ ($0 \le a \le 10^9$) and $b$ ($0 \le b \le 10$).

Output

Print the six results, one per line.

Example 1

Input
5 1
Output
1
5
4
-6
10
2
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code