Weak tests of Div 2, D round 641

Правка en2, от Not-Afraid, 2020-05-12 19:06:18

My initial solution was if there exists a subarray with size > 1 and median k than answer is yes.
But, afer getting a lot of WA on pretest 10, at the last moment i realized that the solution is yes if there exists any subarray of size > 1 with median >= k and i didn't have time so i just submitted my solutin which uses 6 iterations to check if there exists a subarray with size atleast two and median >= k. It passed pretests + system testing.

tc for which my solution fails

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Not-Afraid 2020-05-12 19:06:18 55
en1 Английский Not-Afraid 2020-05-12 19:03:13 628 Initial revision (published)