結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,304 KB
testcase_01 AC 73 ms
71,232 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 76 ms
71,044 KB
testcase_05 AC 73 ms
71,384 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 84 ms
76,784 KB
testcase_09 AC 73 ms
71,048 KB
testcase_10 AC 78 ms
76,480 KB
testcase_11 AC 81 ms
76,536 KB
testcase_12 AC 79 ms
76,620 KB
testcase_13 AC 75 ms
71,400 KB
testcase_14 AC 81 ms
76,496 KB
testcase_15 AC 76 ms
71,300 KB
testcase_16 AC 81 ms
76,300 KB
testcase_17 AC 81 ms
76,480 KB
testcase_18 AC 85 ms
76,384 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 83 ms
76,596 KB
testcase_23 AC 83 ms
76,400 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 80 ms
76,276 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 72 ms
71,204 KB
testcase_38 AC 74 ms
71,348 KB
testcase_39 AC 74 ms
71,308 KB
testcase_40 AC 76 ms
71,208 KB
testcase_41 AC 74 ms
71,464 KB
testcase_42 WA -
testcase_43 AC 77 ms
71,560 KB
testcase_44 WA -
testcase_45 AC 73 ms
71,300 KB
testcase_46 AC 76 ms
76,340 KB
testcase_47 WA -
testcase_48 AC 72 ms
71,208 KB
testcase_49 WA -
testcase_50 AC 89 ms
76,320 KB
testcase_51 AC 82 ms
76,408 KB
testcase_52 AC 80 ms
76,404 KB
testcase_53 AC 79 ms
76,412 KB
testcase_54 AC 78 ms
71,384 KB
testcase_55 AC 85 ms
76,300 KB
testcase_56 AC 79 ms
76,380 KB
testcase_57 AC 77 ms
76,328 KB
testcase_58 AC 79 ms
76,476 KB
testcase_59 AC 79 ms
76,460 KB
testcase_60 AC 76 ms
71,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(ans)
0