結果
問題 |
No.939 and or
|
ユーザー |
|
提出日時 | 2019-12-02 00:34:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 197 bytes |
コンパイル時間 | 474 ms |
コンパイル使用メモリ | 82,608 KB |
実行使用メモリ | 54,304 KB |
最終ジャッジ日時 | 2024-11-22 00:10:04 |
合計ジャッジ時間 | 2,395 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 WA * 5 |
ソースコード
A, B = map(int, input().split()) ans = 1 for i in range(31): if (A >> i & 1) == 1 and (B >> i & 1) == 0: ans = 0 elif (A >> i & 1) == 0 and (B >> i & 1) == 1: ans *= 2 print(ans // 2)