Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Help me with this Ques

Правка en1, от AbhinavBisht, 2022-09-09 20:26:58

Given an array We need to find the count of all the elements in all the subarrays which are neither min nor max in that particular subarray

eg 4 30 47 19 23 ans = 4

i.e in 30 47 29 count is 1 --> 30 is netiher max nor min in 30 47 19 23 count is 2 --> 30 and 23 int 47 19 23 count is 1 --> 23

3 11 20 17 ans = 1

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский AbhinavBisht 2022-09-09 20:32:36 91
en2 Английский AbhinavBisht 2022-09-09 20:29:43 46
en1 Английский AbhinavBisht 2022-09-09 20:26:58 364 Initial revision (published)