Need help with D from the last div2

Правка en1, от Usu, 2018-02-01 21:53:07

Hey, I am encountering difficulties with this problem: http://codeforces.net/contest/919/problem/D from yesterday contest. This is my code commented. Can anybody tell me what is wrong with my logic? My first failed test case is #6, I count more than I should. code : http://codeforces.net/contest/919/submission/34816679

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Usu 2018-02-01 21:53:07 360 Initial revision (published)