結果

問題 No.581 XOR
コンテスト
ユーザー GodNegoto
提出日時 2019-11-29 11:44:22
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
RE  
実行時間 -
コード長 362 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,023 ms
コンパイル使用メモリ 85,228 KB
実行使用メモリ 42,040 KB
最終ジャッジ日時 2026-05-15 01:54:32
合計ジャッジ時間 4,705 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package algo;

import java.util.*;

public class sample7 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	int A = Integer.parseInt(Integer.toBinaryString(sc.nextInt()));
	int C = Integer.parseInt(Integer.toBinaryString(sc.nextInt()));
	int B = 0;
	B = A ^ C;
	System.out.println(Integer.parseInt(Integer.toString(B), 2));
	}
}
0