Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Блог пользователя jurgiel

Автор jurgiel, история, 6 лет назад, По-английски
  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

As I understand the problem you need to compare the scores to the score of the kth max score, not to k itself. And you should count only scores > 0.

Or with other words, how man of the first k in result list have score bigger than zero.