結果
問題 |
No.939 and or
|
ユーザー |
|
提出日時 | 2019-12-20 13:39:52 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 576 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,144 KB |
最終ジャッジ日時 | 2024-07-08 07:59:18 |
合計ジャッジ時間 | 1,846 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 WA * 3 |
ソースコード
#yuki939 a,b=map(int,raw_input().split()) k=1 x=0 for i in range(32): if k&a>0: if k&b==0: x-=1 break else: if k&b>0: x+=1 k<<=1 if x==-1: print 0 elif x==0: print 1 else: print 2**(x-1)