suggi_d_luffy's blog

By suggi_d_luffy, history, 9 years ago, In English

Problem Link : XMEN

Solution Link : Solution

Tags dp, spoj
  • 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

The paste link is expired. Please provide the new link.

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

What's that?

m = (l+(r-l))/2;

If l=6 and r=8, then m=(6+2)/2=4 which is less than l.