結果

問題 No.1511 A ? B Problem
ユーザー マサマサ
提出日時 2022-01-11 15:48:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 73,884 KB
実行使用メモリ 54,220 KB
最終ジャッジ日時 2024-04-26 20:40:59
合計ジャッジ時間 5,072 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
53,620 KB
testcase_01 AC 123 ms
53,884 KB
testcase_02 AC 123 ms
53,992 KB
testcase_03 AC 124 ms
53,768 KB
testcase_04 AC 129 ms
53,640 KB
testcase_05 AC 131 ms
53,752 KB
testcase_06 AC 130 ms
54,128 KB
testcase_07 AC 127 ms
53,744 KB
testcase_08 AC 127 ms
54,000 KB
testcase_09 AC 130 ms
54,220 KB
testcase_10 AC 125 ms
54,140 KB
testcase_11 AC 124 ms
53,792 KB
testcase_12 AC 123 ms
54,172 KB
testcase_13 AC 123 ms
53,912 KB
testcase_14 AC 123 ms
53,888 KB
testcase_15 AC 113 ms
52,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        System.out.println( (a | b) - (a & b) );
    }
}
0