find the subsequencearray with the biggsmallest average
Difference between en1 and en2, changed 40 character(s)
Hi guys, Im having a promblem about the number, but I haven't solved. PLS Help me.↵
The problem is: Given an array a (length 2e5) of positive integer numbers. Chose a sub
sequencearray from L to R (1 < L <= R < n)↵
Delete all the number from Al -> Ar. Find the m
axin average of the left nums.↵

Sample INPUT ↵
5↵
5↵
1↵
7↵
8↵
2↵
Sample OUTPUT ↵
2.667↵

2 subtask: n <= 1e3 and n <= 1e5 ↵
I solve the first one, but not the latter.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Gi4Th4ng_Di77_NLUN 2024-08-14 19:07:11 40
en1 English Gi4Th4ng_Di77_NLUN 2024-08-14 19:01:47 468 Initial revision (published)