yogomate's blog

By yogomate, history, 22 months ago, In English

hi I am stuck on this problem figuring out what is this question is asking. for eg if traveling from school a ot school b ticket cost is (a+b)%(n+1) the nwhy for test case 2 cost is not 0 we can travel form 1 to n, 2 to n-1 ...n/2 to n/2 +1 and the cost will be zero to travel to n,n-1..n/2+1 and to travel from 1 to n/2 we will choose n/2+1 to n schools as starting point and the ans will be still zero for eg : n = 10 schools = 1 2 3 4 5 6 7 8 9 10 then to travek form 1 to 10 is 0 ,similarly 2 to 9,... 5 to 6 is zero But answer is n/2 -1 i don't understand the question please explain me

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

| Write comment?