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

Автор __Joker, история, 6 лет назад, По-английски

Please find my solution at : http://codeforces.com/contest/1054/submission/44512450

The algorithm I am following is this,

for each student, find out how many student have more chocolates than him, by adding l[i] and r[i].

This basically gives the standard competition ranking. see[1].

Next step is I am simply verifying if the ranking I am getting is a standard competition ranking.

And chocolate distribution is (n-rank[i])

My solution is failing on test case 6. And I am not able to download the whole test case( it is big).

Any body will be kind enough to point out what I am doing wrong ?

[1]. https://en.wikipedia.org/wiki/Ranking#Standard_competition_ranking_(%221224%22_ranking)

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор __Joker, 11 лет назад, По-английски
  • Проголосовать: нравится
  • -7
  • Проголосовать: не нравится

Автор __Joker, 11 лет назад, По-английски

One of my submission was judged as "Memory limit exceeded". I am generally curious about how the online judge calculated the memory usage for a submission.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится