ranit's blog

By ranit, history, 10 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?
»
10 years ago, hide # |
 
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.