ranit's blog

By ranit, history, 9 years ago, In English

UVA — 138 — Street Numbers

(https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=74)

I don't understand the last few lines of problem. what they want me to do ? what are they wanting ?

Please Help. Thanks in Advance.

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

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I guess you should output first ten pairs (k, n) with property sum(1..k — 1) == sum(k + 1 .. n). k — number of her house, n — number of houses on the street.

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    how do you get that ? I don't understand. It'll be great help if you explain it to me. Please.