Codeforces global round problem d ?

Правка en2, от chinesecoder, 2019-02-11 06:28:09

in problem d , jongmah , the editorial is dealing with types of at most 2 consecutive elements like i , i+1 , i+2 .

but where are the triplets which are in the form of i , i , i . how to deal with them . since we are not dealing with same triplets how it will give to correct answer , i couldn't understood the author's approach , can anyone elaborate it .

The author said "So we can assume that there are at most 2 triples of type [x,x+1,x+2] for each x." where triplets of x ,x ,x are gone ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский chinesecoder 2019-02-11 06:28:09 142
en1 Английский chinesecoder 2019-02-11 05:48:07 493 Initial revision (published)