No.581 XOR
レベル :
/ AI推定難易度 : 109
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 587
作問者 :
nmnmnmnmnmnmnm
/ テスター :
Nafmo2
タグ : / 解いたユーザー数 587
作問者 :
nmnmnmnmnmnmnm
/ テスター :
問題文最終更新日: 2020-06-02 21:52:15
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 175
(順位表)
の他の問題:
Problem Statement
It is known that the bitwise exclusive OR of a non-negative integer $A$ and a non-negative integer $B$ is a non-negative integer $C$.
Given $A$ and $C$, find the value of $B$.
* For an explanation of exclusive OR, please see the following page.
https://ja.wikipedia.org/wiki/%E6%8E%92%E4%BB%96%E7%9A%84%E8%AB%96%E7%90%86%E5%92%8C
Input
$A$ $C$
$A$ and $C$ are non-negative integers. $0 \le A,C \le 1000000000000 = 10^{12}$.
Output
Output the non-negative integer $B$ on one line.
Sample
Sample 1
Input
1 3
Output
2
The number whose exclusive OR with 1 is 3 is 2.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。