結果

問題 No.2500 Products in a Range
ユーザー hato336hato336
提出日時 2023-10-13 21:28:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 953 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 86,876 KB
最終ジャッジ日時 2023-10-13 21:28:21
合計ジャッジ時間 17,204 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 216 ms
85,388 KB
testcase_01 AC 215 ms
85,268 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 240 ms
85,440 KB
testcase_05 AC 217 ms
85,544 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 232 ms
86,428 KB
testcase_09 AC 237 ms
85,472 KB
testcase_10 AC 226 ms
86,640 KB
testcase_11 AC 221 ms
86,876 KB
testcase_12 AC 222 ms
86,684 KB
testcase_13 AC 222 ms
85,284 KB
testcase_14 AC 241 ms
86,656 KB
testcase_15 AC 218 ms
85,292 KB
testcase_16 AC 218 ms
86,652 KB
testcase_17 AC 222 ms
86,556 KB
testcase_18 AC 224 ms
86,768 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 232 ms
86,688 KB
testcase_23 AC 230 ms
86,456 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 229 ms
86,660 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 232 ms
86,384 KB
testcase_34 AC 257 ms
86,628 KB
testcase_35 AC 229 ms
85,512 KB
testcase_36 AC 225 ms
85,208 KB
testcase_37 AC 219 ms
85,424 KB
testcase_38 AC 220 ms
85,364 KB
testcase_39 AC 243 ms
85,564 KB
testcase_40 AC 218 ms
85,432 KB
testcase_41 AC 220 ms
85,392 KB
testcase_42 AC 225 ms
85,112 KB
testcase_43 AC 218 ms
85,508 KB
testcase_44 AC 244 ms
86,672 KB
testcase_45 AC 217 ms
85,244 KB
testcase_46 AC 221 ms
86,472 KB
testcase_47 AC 233 ms
86,408 KB
testcase_48 AC 218 ms
85,392 KB
testcase_49 WA -
testcase_50 AC 230 ms
86,580 KB
testcase_51 AC 226 ms
86,780 KB
testcase_52 AC 223 ms
86,484 KB
testcase_53 AC 220 ms
86,516 KB
testcase_54 AC 238 ms
85,444 KB
testcase_55 AC 225 ms
86,376 KB
testcase_56 AC 228 ms
86,412 KB
testcase_57 AC 233 ms
86,388 KB
testcase_58 AC 235 ms
86,416 KB
testcase_59 AC 243 ms
86,388 KB
testcase_60 AC 219 ms
85,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#n = int(input())
#
#alist = []
#s = input()
n,l,r = map(int,input().split())
#for i in range(n):
#    alist.append(list(map(int,input().split())))
alist = list(map(int,input().split()))
alist.sort()
ans = 1
temp = 1
for i in range(n-1):
    if l <= alist[i] * alist[i+1] <= r:
        temp += 1
    else:
        ans = max(ans,temp)
        temp = 1
ans = max(ans,temp)
#print(alist)
print(ans)
0