結果
問題 | No.939 and or |
ユーザー | O2MT |
提出日時 | 2021-04-10 18:05:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 290 ms |
コンパイル使用メモリ | 87,008 KB |
実行使用メモリ | 71,664 KB |
最終ジャッジ日時 | 2023-09-08 13:49:55 |
合計ジャッジ時間 | 4,167 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,212 KB |
testcase_01 | AC | 73 ms
71,124 KB |
testcase_02 | WA | - |
testcase_03 | AC | 70 ms
71,152 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 69 ms
71,296 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 74 ms
70,976 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 73 ms
71,104 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 72 ms
71,012 KB |
testcase_31 | WA | - |
ソースコード
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)