back_slash's blog

By back_slash, history, 7 years ago, In English

I need help with the following question.

UPD: There is a misprint in the question. For the second constraint, it is the constraint of K. That is, the value of 0 <= K <= 2*10^10.

UPD2: It would be great if someone can provide a correct approach to the question, codechef has not published any official editorial for the regional questions.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
  Vote: I like it +11 Vote: I do not like it

Why is there a constraint over N two times? It says 1 <= N <= 10^5 and 0 <= N <= 2 * 10^10. Incase it means the N for input & N for output, then that's just absurd.

  • »
    »
    7 years ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    There is a misprint. The last line is 0<=K<=2*10^10.

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by back_slash (previous revision, new revision, compare).

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by back_slash (previous revision, new revision, compare).