結果

問題 No.1511 A ? B Problem
ユーザー ks2mks2m
提出日時 2021-05-21 21:20:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 1,885 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-04-18 14:20:55
合計ジャッジ時間 4,511 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
53,956 KB
testcase_01 AC 122 ms
53,888 KB
testcase_02 AC 119 ms
54,104 KB
testcase_03 AC 120 ms
53,820 KB
testcase_04 AC 127 ms
54,392 KB
testcase_05 AC 123 ms
53,960 KB
testcase_06 AC 113 ms
52,844 KB
testcase_07 AC 125 ms
53,740 KB
testcase_08 AC 116 ms
52,860 KB
testcase_09 AC 108 ms
52,888 KB
testcase_10 AC 114 ms
53,104 KB
testcase_11 AC 123 ms
53,936 KB
testcase_12 AC 118 ms
53,924 KB
testcase_13 AC 127 ms
54,100 KB
testcase_14 AC 123 ms
53,924 KB
testcase_15 AC 116 ms
53,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		System.out.println((a | b) - (a & b));
	}
}
0