結果
問題 |
No.939 and or
|
ユーザー |
|
提出日時 | 2021-12-07 18:27:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-07 20:50:04 |
合計ジャッジ時間 | 1,919 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 20 |
ソースコード
import sys A,B = list(map(int,input().split())) count = 0 for i in range(32): mask = 1 << i if A & mask and B & mask == 0: print(0) exit() if A & mask == 0 and B & mask == 1: count += 1 print(2 ** count)