i don't understand what this question is asking

Revision en1, by yogomate, 2023-01-14 17:23:09

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

Tags help, constructive

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English yogomate 2023-01-14 17:23:09 707 Initial revision (published)