結果
問題 |
No.2500 Products in a Range
|
ユーザー |
|
提出日時 | 2023-10-13 21:28:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 523 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 90,112 KB |
最終ジャッジ日時 | 2024-09-15 17:03:59 |
合計ジャッジ時間 | 11,206 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 WA * 16 |
ソースコード
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)