結果
| 問題 | No.3624 Product |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2026-08-14 22:23:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 172 ms / 2,000 ms |
| + 390µs | |
| コード長 | 257 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 88,388 KB |
| 最終ジャッジ日時 | 2026-08-14 22:23:45 |
| 合計ジャッジ時間 | 3,129 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 |
ソースコード
T=int(input())
fa=[]
for _ in range(T):
L,R=map(int,input().split())
ans=-1
if L==0:
ans=0
for i in range(30):
if L<=2**i-1 and 2**i<=R:
ans = max(ans, (2**i-1)*(2**i))
fa.append(ans)
for a in fa:
print(a)
nikoro256