結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2020-11-26 09:02:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 84,716 KB |
| 実行使用メモリ | 53,684 KB |
| 最終ジャッジ日時 | 2026-04-03 16:14:00 |
| 合計ジャッジ時間 | 1,818 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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