結果

問題 No.581 XOR
ユーザー FfalconokeFfalconoke
提出日時 2017-12-10 09:07:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 4,095 ms
コンパイル使用メモリ 73,004 KB
実行使用メモリ 55,956 KB
最終ジャッジ日時 2023-08-20 09:49:45
合計ジャッジ時間 6,332 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
55,112 KB
testcase_01 AC 136 ms
55,956 KB
testcase_02 AC 134 ms
55,664 KB
testcase_03 AC 134 ms
55,368 KB
testcase_04 AC 132 ms
55,412 KB
testcase_05 AC 134 ms
55,404 KB
testcase_06 AC 131 ms
55,760 KB
testcase_07 AC 135 ms
55,412 KB
testcase_08 AC 131 ms
55,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class solve4{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long a = sc.nextLong();
		long b = sc.nextLong();
		System.out.println(a ^ b);
		//排他的論理和は排他的論理和で求められる
	}
}
0