結果
| 問題 |
No.939 and or
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-19 20:49:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 170 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,112 KB |
| 実行使用メモリ | 54,104 KB |
| 最終ジャッジ日時 | 2024-09-21 10:35:16 |
| 合計ジャッジ時間 | 2,467 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
a,b = map(int,input().split())
d = dict(zip([(0,0),(1,0),(0,1),(1,1)],[1,0,2,1]))
ans = 1
for i in range(32):
x,y = a>>i&1, b>>i&1
ans *= d[x,y]
print((ans+1)//2)
convexineq