結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2020-11-26 09:02:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 54,352 KB |
| 最終ジャッジ日時 | 2024-07-23 20:42:55 |
| 合計ジャッジ時間 | 2,370 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 20 |
ソースコード
def muzyun(A,B):
while A:
if A & 1 == 1 and B & 1 !=1:
return True
A >>= 1
B >>= 1
return False
A, B = map(int,input().split())
if muzyun(A,B):
print(0)
exit()
ans = 0
C = A^B
while C:
if C & 1 == 1:
ans+=1
C >>= 1
print(max(1,ans))
H20