Learning_CP's blog

By Learning_CP, history, 7 years ago, In English

Hello Everyone, I am trying to submit problems here, but unfortunately i am not able to submit. When i click the submit button, the page keeps connecting/loading and i am not redirected to any page and finally "Page not found" message is printed on the screen ! I am trying from last 2 days but not able to submit any problems ! Please anyone help me resolving the issue ! I have tried using the different browser as well but that does'nt works too ! All other pages are working fine on codeforces but only "submit page is not working" ! Thanks !

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By Learning_CP, history, 8 years ago, In English

Hello All, I have doubt in Binary Search Algorithm. Like in yesterday's contest 417(Div. 2), there was a problem C Sagheer and Nubian Market . I saw in the editorial and many solutions of the top coders as well. Some people have started binary Search with while(low <= high) this condition, some have started with while(high — low > 1) this condition and some have did it with while(low < high) . I have a doubt, how do we decide that which loop condition we have to apply and how we get the answer ? Can somebody explain this with yesterday's C problem ! Link to the problem:- Link Thanks !

Full text and comments »

  • Vote: I like it
  • +17
  • Vote: I do not like it