結果
問題 |
No.939 and or
|
ユーザー |
![]() |
提出日時 | 2020-07-25 15:10:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 258 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 06:27:17 |
合計ジャッジ時間 | 2,101 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 25 |
ソースコード
import sys A,B=map(int,input().split()) s=bin(A)[2:] t=bin(B)[2:] a=len(s) b=len(t) x=["0"]*max(a,b) y=["0"]*max(a,b) for i in range(a): if s[i]=="1": x[i]="1" y[i]="1" if t[i]=="0": print(0) sys.exit() print(2**(s.count("0")-1))