Master_coder's blog

By Master_coder, history, 6 years ago, In English

i am trying to do these question with binary search but it pass only few cases . my soln is http://mirror.codeforces.com/contest/604/submission/44016513

  • Vote: I like it
  • -20
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
  Vote: I like it +2 Vote: I do not like it

Try this test case:

17618 10972
3 12 17 91 103 150 206 363 411 479 565 567 581 626 635 682 690 701 711 831 937 945 1110 1172 1231 1335 1413 1425 1432 1490 1493 1529 1530 1537 1605 1665 1841 1847 1942 1943 1981 2089 2154 2216 2218 2228 2446 2458 2499 2508 2580 2617 2760 2843 2912 2957 2976 3047 3049 3057 3138 3214 3394 3564 3725 3743 3802 3818 3863 3978 4057 4110 4118 4162 4387 4430 4445 4479 4538 4559 4561 4614 4798 4823 4844 4888 5013 5015 5147 5213 5245 5255 5261 5417 5476 5518 5525 5576 5603 5626 5651 5676 5688 5707 5708 ...

Answer should be 999732 but your answer—1064145.

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

Seems you put more than two cowbells into a single box. Check its, also.