結果

問題 No.2500 Products in a Range
ユーザー Akijin_007Akijin_007
提出日時 2023-10-13 21:28:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 76,736 KB
最終ジャッジ日時 2023-10-13 21:28:55
合計ジャッジ時間 7,693 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,204 KB
testcase_01 AC 82 ms
71,208 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 77 ms
71,292 KB
testcase_05 AC 75 ms
71,392 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 86 ms
76,376 KB
testcase_09 AC 74 ms
71,284 KB
testcase_10 AC 82 ms
76,420 KB
testcase_11 AC 82 ms
76,400 KB
testcase_12 AC 80 ms
76,300 KB
testcase_13 AC 75 ms
71,476 KB
testcase_14 AC 81 ms
76,400 KB
testcase_15 AC 77 ms
71,212 KB
testcase_16 AC 82 ms
76,236 KB
testcase_17 AC 80 ms
76,476 KB
testcase_18 AC 81 ms
76,568 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 85 ms
76,524 KB
testcase_23 AC 85 ms
76,528 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 83 ms
76,480 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 81 ms
76,308 KB
testcase_34 AC 82 ms
76,312 KB
testcase_35 AC 76 ms
71,288 KB
testcase_36 AC 76 ms
71,368 KB
testcase_37 AC 75 ms
71,300 KB
testcase_38 AC 76 ms
71,476 KB
testcase_39 AC 77 ms
71,212 KB
testcase_40 AC 78 ms
71,440 KB
testcase_41 AC 77 ms
71,512 KB
testcase_42 AC 79 ms
71,056 KB
testcase_43 AC 77 ms
71,532 KB
testcase_44 AC 82 ms
76,384 KB
testcase_45 AC 77 ms
71,332 KB
testcase_46 AC 85 ms
76,364 KB
testcase_47 AC 83 ms
76,480 KB
testcase_48 AC 76 ms
71,164 KB
testcase_49 WA -
testcase_50 AC 84 ms
76,736 KB
testcase_51 AC 82 ms
76,436 KB
testcase_52 AC 84 ms
76,520 KB
testcase_53 AC 81 ms
76,312 KB
testcase_54 AC 85 ms
71,252 KB
testcase_55 AC 78 ms
76,648 KB
testcase_56 AC 83 ms
76,496 KB
testcase_57 AC 81 ms
76,284 KB
testcase_58 AC 82 ms
76,352 KB
testcase_59 AC 82 ms
76,536 KB
testcase_60 AC 76 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

from bisect import bisect, bisect_left
N, L, R = map(int, input().split())
A = list(map(int, input().split()))

A = sorted(A)

ans = 1
t = 1
for i in range(N-1):
    p = A[i] * A[i+1]
    if L <= p and p <= R:
        t += 1
    else:
        ans = max(t, ans)
        t = 1

ans = max(ans, t)

print(ans)




0