結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-19 20:49:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 170 bytes |
| 記録 | |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-09 16:59:42 |
| 合計ジャッジ時間 | 2,052 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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