結果

問題 No.2323 Nafmo、A+Bをする
ユーザー CuriousFairy315CuriousFairy315
提出日時 2023-05-28 13:35:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 433 bytes
コンパイル時間 3,425 ms
コンパイル使用メモリ 71,816 KB
実行使用メモリ 55,936 KB
最終ジャッジ日時 2023-08-27 08:03:41
合計ジャッジ時間 5,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,688 KB
testcase_01 AC 120 ms
55,748 KB
testcase_02 AC 121 ms
55,832 KB
testcase_03 AC 122 ms
55,448 KB
testcase_04 AC 121 ms
55,804 KB
testcase_05 AC 121 ms
55,664 KB
testcase_06 AC 120 ms
53,928 KB
testcase_07 AC 121 ms
55,468 KB
testcase_08 AC 120 ms
55,452 KB
testcase_09 AC 119 ms
55,824 KB
testcase_10 AC 117 ms
55,744 KB
testcase_11 AC 120 ms
55,936 KB
testcase_12 AC 120 ms
55,752 KB
testcase_13 AC 119 ms
55,908 KB
testcase_14 AC 119 ms
55,640 KB
testcase_15 AC 122 ms
55,756 KB
testcase_16 AC 119 ms
55,640 KB
testcase_17 AC 118 ms
53,684 KB
testcase_18 AC 120 ms
55,752 KB
testcase_19 AC 120 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


import static java.lang.System.err;

public class Main {
	public static void main(String[] args) {
		java.io.PrintWriter out = new java.io.PrintWriter(System.out);
		new Main(out);
		out.flush();
		err.flush();
	}

	public Main(java.io.PrintWriter out) {
		try (java.util.Scanner sc = new java.util.Scanner(System.in)) {
			int A = Integer.parseInt(sc.next(), 2), B = Integer.parseInt(sc.next(), 2);
			out.println(A ^ B);
		}
	}
}
0