結果
| 問題 |
No.2500 Products in a Range
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-12-22 01:44:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 76,808 KB |
| 最終ジャッジ日時 | 2024-12-22 01:45:01 |
| 合計ジャッジ時間 | 9,745 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 WA * 9 |
ソースコード
N, L, R = map(int, input().split())
A = sorted(list(map(int, input().split())))
ans = 1
for i in range(N-1):
for j in range(i+1, N):
a = A[i]*A[j]
b = A[i]*A[i+1]
c = A[j]*A[j-1]
if L <= min(a, b, c) <= max(a, b, c) <= R:
ans = max(ans, j-i+1)
print(ans)
detteiuu