結果
| 問題 | No.581 XOR |
| コンテスト | |
| ユーザー |
GodNegoto
|
| 提出日時 | 2019-11-29 11:44:22 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 3,855 ms |
| コンパイル使用メモリ | 74,184 KB |
| 実行使用メモリ | 41,516 KB |
| 最終ジャッジ日時 | 2024-11-20 21:18:01 |
| 合計ジャッジ時間 | 5,506 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 RE * 7 |
ソースコード
package algo;
import java.util.*;
public class sample7 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = Integer.parseInt(Integer.toBinaryString(sc.nextInt()));
int C = Integer.parseInt(Integer.toBinaryString(sc.nextInt()));
int B = 0;
B = A ^ C;
System.out.println(Integer.parseInt(Integer.toString(B), 2));
}
}
GodNegoto