結果
問題 |
No.939 and or
|
ユーザー |
|
提出日時 | 2021-04-10 18:05:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 82,572 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-06-26 06:56:20 |
合計ジャッジ時間 | 2,770 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 25 |
ソースコード
A,B = map(int,input().split()) bitA = bin(A)[2:].zfill(31) bitB = bin(B)[2:].zfill(31) if A & B != A: print(0) exit() count = 0 for i in range(len(bitA)): if bitA[i] != bitB[i]: count += 1 print(count)