結果
| 問題 | No.3624 Product |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-08-14 21:58:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 85,188 KB |
| 最終ジャッジ日時 | 2026-08-14 21:58:27 |
| 合計ジャッジ時間 | 2,423 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 5 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
L, R = map(int, input().split())
if L.bit_length() < R.bit_length():
b = 1<<(R.bit_length()-1)
a = b-1
print(a*b)
else:
print(-1)
detteiuu