結果

問題 No.1432 Not Xor
ユーザー Subaru314Subaru314
提出日時 2022-02-12 22:12:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 2,000 ms
コンパイル使用メモリ 71,224 KB
実行使用メモリ 57,920 KB
最終ジャッジ日時 2023-09-11 10:43:07
合計ジャッジ時間 3,785 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,072 KB
testcase_01 AC 123 ms
57,920 KB
testcase_02 AC 124 ms
55,808 KB
testcase_03 AC 125 ms
55,688 KB
testcase_04 AC 123 ms
55,452 KB
testcase_05 AC 123 ms
55,504 KB
testcase_06 AC 122 ms
55,980 KB
testcase_07 AC 123 ms
56,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;

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