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

Автор rezidentura, история, 18 месяцев назад, По-английски

Rating not available for this question.

Always it takes a lot of time for the problems of the last rounds to have a rating, is there a reason for that!!

for ex : Codeforces Global Round 23 problems

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

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

Автор rezidentura, история, 19 месяцев назад, По-английски

This is the problem I want to discuss : 1661B - Получение нуля

I have this answer, It's not mine but I made it cleaner (I think).

The answer

I have two questions and thank you in advance.

1) Why deleting this line : return ans[x]; gives wrong answer.

2) why changing the code into the 2 code below gives wrong answer :

2 code

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

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