結果

問題 No.1511 A ? B Problem
ユーザー takutakutakutaku
提出日時 2021-08-30 09:02:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 3,207 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 41,412 KB
最終ジャッジ日時 2024-05-02 10:03:07
合計ジャッジ時間 6,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
40,960 KB
testcase_01 AC 133 ms
40,940 KB
testcase_02 AC 128 ms
41,172 KB
testcase_03 AC 130 ms
41,204 KB
testcase_04 AC 132 ms
41,380 KB
testcase_05 AC 132 ms
40,952 KB
testcase_06 AC 117 ms
39,764 KB
testcase_07 AC 132 ms
41,036 KB
testcase_08 AC 127 ms
41,204 KB
testcase_09 AC 117 ms
39,748 KB
testcase_10 AC 131 ms
41,388 KB
testcase_11 AC 135 ms
41,412 KB
testcase_12 AC 132 ms
41,308 KB
testcase_13 AC 116 ms
40,080 KB
testcase_14 AC 132 ms
41,088 KB
testcase_15 AC 131 ms
41,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String[] num = sc.nextLine().split(" ",0);
        sc.close();
        
        int a = Integer.parseInt(num[0]);
        int b = Integer.parseInt(num[1]);
        
        System.out.println((a | b) - (a & b));
        
    }
}
0